Re: PHP and Post Data

From: Date: Wed, 22 Dec 2004 04:33:38 +0000
Subject: Re: PHP and Post Data
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-204932@lists.php.net to get a copy of this message
Shane Mc Cormack wrote:
Hi I'm trying to integrate PHP Support into a basic webserver i am creating for personal use (Windows). However i've run into a problem. I've got the _GET vars working, (using the QUERY_STRING Environment Variable), yet i can't figure out how to get the _POST vars set. my webserver has the POST data stored in a variable, i jsut need to know how to tell PHP the post data. On the webserver GET support works perfectly, as does POST support, all i need to do is tell PHP what the data is. Any help would be appreciated.
Not sure I follow quite what you're asking, but if you have a form like this... <form action="myform.php" method="post"> <input type="text" name="foo" /> <input type="hidden" name="bar" value="bob" /> <input type="submit" /> </form> Once you submit the form (to myform.php), the data posted from the form will be available in the $_POST super global array... $_POST['foo'] $_POST['bar'] http://us4.php.net/manual/en/language.variables.external.php -- By-Tor.com ...it's all about the Rush http://www.by-tor.com

« previous php.general (#204932) next »