我想当没有POST *和*用户的信息时会发生这种情况 没有点击提交按钮而是按ENTER键。 这也适用于Mozilla Firebird。我测试过: <?php echo<<< HTML < form action =" ; { _SERVER ['PHP_SELF '']}" method =" post"> < input type ="复选框"名称= QUOT; CHK1"值= QUOT 1 QUOT;选中/>框1< br /> < input type ="复选框"名称= QUOT; CHK2" value =" 2" /> box 2< br /> < input type =" submit"命名= [提交" value =" Go!" /> < / form> HTML; if(isset() G''day, has any of You ever experienced the problem that posted forms deliver anempty $_POST-array? I have a form like: <form method="POST" action="https://.../result.html?qid=70"><input type="checkbox" value="1" name="1a"><input type="checkbox" value="1" name="1b">(...)<input type="submit" name="Answer" value="Answer"></form> and every once in a while I get empty results (1 out of 10, maybe). Thisonly happens in MSIE 6.0, as far as I can see, but I''m not absolutely sure.Some users have the problem all the time, some never. I use https to connect and mod_rewrite to rewrite "result.html" to"result.php"... SERVER_SOFTWARE:Apache/1.3.27 (Unix) PHP/4.3.1 mod_ssl/2.8.12 OpenSSL/0.9.6g Beats me ... help _very_ appreciated. Rudi 解决方案 _POST-array? I have a form like: <form method="POST" action="https://.../result.html?qid=70"><input type="checkbox" value="1" name="1a"><input type="checkbox" value="1" name="1b">(...)<input type="submit" name="Answer" value="Answer"></form> and every once in a while I get empty results (1 out of 10, maybe). Thisonly happens in MSIE 6.0, as far as I can see, but I''m not absolutely sure.Some users have the problem all the time, some never. I use https to connect and mod_rewrite to rewrite "result.html" to"result.php"... SERVER_SOFTWARE:Apache/1.3.27 (Unix) PHP/4.3.1 mod_ssl/2.8.12 OpenSSL/0.9.6g Beats me ... help _very_ appreciated. RudiRudolf Horbas wrote: G''day,Thank you, g''night :) every once in a while I get empty results (1 out of 10, maybe). This only happens in MSIE 6.0, as far as I can see, but I''m not absolutely sure. Some users have the problem all the time, some never. I guess it happens when there is no info to POST *and* the userdoes not click the submit button but presses ENTER instead. This also happens with Mozilla Firebird. I tested with: <?phpecho <<<HTML<form action="{_SERVER[''PHP_SELF'']}" method="post"><input type="checkbox" name="chk1" value="1" checked/>box 1<br/><input type="checkbox" name="chk2" value="2"/>box 2<br/><input type="submit" name="submit" value="Go!"/></form>HTML;if (isset( 这篇关于$ _POST是空的(在MSIE?)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!
10-30 05:06