|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-08-30 12:11 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Dec 05 01:00:02 2025 UTC |
Description: ------------ The POST form data is always empty, but GET form works. This problem appear when I use PHP5 with Apache 2.0. Earlier I have used PHP4 with Apache 2.0 and had no problem. Simple code like this is not working: <?php if (array_key_exists('my_name',$_POST)) { print "Hello, ". $_POST['my_name']; } else { print<<<_HTML_ <form method="post" action="$_SERVER[PHP_SELF]"> Your name: <input type="text" name="my_name"> <br/> <input type="submit" value="Say Hello"> </form> _HTML_; } ?>