$_POST的值一般情况下是有的,30条里有一条是$_POST是空白,取不到提交的内容,这是为什么呢,录入时有JS检查的一定是有值传送过来.
服务器是WINDOWS +  PHP + APACHE +ACCCESS
提交页
<form name="form1" method="post" action="../EN.php">
<input name="FirstName" type="text"  size="10"/>
<input name="LastName" type="text" size="10"/>
<a href="#" onclick="return validate_form(document.form1);" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('submitquote','','../images/en-submit-b.png',1)">
<img src="../images/en-submit-a.png" name="submitquote" style="vertical-align:middle;" border="0" id="submitquote" /></a>
</form>保存页$file_name = "logtrace.txt"; 
$file_pointer = fopen($file_name, "a"); 
fwrite($file_pointer, @$_POST["FirstName"]." /"); 
fwrite($file_pointer, @$_POST["LastName"]." /"); 
fwrite($file_pointer, @$_SERVER["HTTP_USER_AGENT"]." /"); 
fwrite($file_pointer, @$_SERVER["HTTP_ACCEPT_LANGUAGE"]." /");
$now=date("Y-m-d H:i:s",time());
fwrite($file_pointer, $now."  \r\n");
fclose($file_pointer); 

解决方案 »

  1.   

    可以正确的操作30次可以得到值,里面有一次是没有值的POST
      

  2.   

    _POST/application/x-www-form-urlencoded 
    完全无值,
    两条记录一条正常一条不正常,第二条错的完全没有内容,好奇怪,救命啊
    [Begin]三 /张 /[email protected] /12323113222 /Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; Tablet PC 2.0) /zh-CN /application/x-www-form-urlencoded /Nationality=Chinese&CountryCoverageIn=China&CountryResidence=Guangdong Other&Gender=female&FirstName=三&LastName=张&ContactNumber=12323113222 &[email protected] &IndBenefitsOutpatient=on&IndBenefitsDental=on&Page=web cn fast&Code=1232 /2010-09-29 18:09:34 / webcn [End]
    [Begin] / / / /Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; .NET CLR 3.0.04506;) / / / /2010-09-29 18:11:02 / webcn [End]