用PHP做了一个POST方式提交数据的表单,从一个API网址中获取数据,返回总提示“please set Content-Type to application/x-www-form-urlencoded”,我该在网页中如何设置,谢谢!代码如下:<?php此处省去部代代码 if ($_POST['rate']!="")
{


var_dump(buy('pay_cny', '10', '10'));
}

?> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head><body><form action="" method="post" id="Form10" name="Form10" enctype="application/x-www-form-urlencoded">
<table width="1" border="1" cellspacing="1" cellpadding="1">
  <tr>
    <td>币种</td>
    <td><input name="currencyPair" type="text" value="pay_cny" /></td>
  </tr>
  <tr>
    <td>rate价格</td>
    <td><input name="rate" type="text" value="" /></td>
  </tr>
  <tr>
    <td>amount数量</td>
    <td><input name="amount" type="text" value="" /></td>
  </tr>
  
</table>
<input type="submit" name="Submit" value="提交"></form>
</body>
</html>