RE: [PHP] Problem with the post variables.

From: Date: Mon, 18 Aug 2003 17:08:31 +0000
Subject: RE: [PHP] Problem with the post variables.
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-159935@lists.php.net to get a copy of this message
--- Wouter van Vliet <wouter@esctoday.com> wrote: > The problem is probably in the 'enctype="multipart/form-data"'. > You should only use this enctype if you're gonna upload a file > through the form. If not, just leave it away or use text/plain Posted data isn't text/plain, it's something like application/x-www-form-urlencoded. For the original poster, find a simple example and build on that rather than trying to learn too many things at once. This might be a good start: <form method="post"> <input type="text" name="foo" /><br /> <input type="submit" /> </form> <p>$_POST array:</p> <pre> <? print_r($_POST); ?> </pre> Hope that helps. Chris ===== Become a better Web developer with the HTTP Developer's Handbook http://httphandbook.org/

« previous php.general (#159935) next »