Re: Can't fetch HTTP POST data in PHP?

From: Date: Sun, 16 Nov 2003 00:34:00 +0000
Subject: Re: Can't fetch HTTP POST data in PHP?
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-169792@lists.php.net to get a copy of this message
Hello. I read throughout this thread and it looks like I have encountered the same problem. Everything looks just fine but somehow the PHP does not parse the request data sent to the script. I did some research on that but gave up since I couldn't find how and where those data were parsed. But I've used the PHP for a few days maybe it's just my stupidity. Some of you more acquainted with the topic will find some info I've gathered useful eventually. I used this form: <form action="test.php" method="POST"> Your name: <input type="text" name="username"/><br/> Email: <input type="text" name="email"/></br> <input type="submit" name="submit" value="Submit me!"> </form> The test.php script contained this code: <?php error_reporting(E_ALL); echo "<pre>\n"; phpinfo(); echo "</pre>\n<br/>"; var_dump($_POST); ?> Then I saw a pretty large page but at the end there was array(0) { } and _that_ seemed to me pretty strange. If someone is interested in reading through the whole result it could be downloaded from http://zonk.matfyz.cz/php_post_problem I tried to change the method to GET but it didn't work either. The result could be seen at http://zonk.matfyz.cz/php_get_problem Take care. -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Arne Rusek <zonk@matfyz.cz> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- "Resistance is futile. Open your source code and prepare for assimilation."

« previous php.general (#169792) next »