Page Not Found after sending form through POST method, Get Method works

From: Date: Thu, 28 Apr 2005 13:52:55 +0000
Subject: Page Not Found after sending form through POST method, Get Method works
Groups: php.windows 
Request: Send a blank email to php-windows+get-25933@lists.php.net to get a copy of this message
To illustrate the problem I'm having, I created a very simple form called TestForm.php . <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Test Form</title> </head> <body> <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post"> <table> <tr><td>Name</td><td><input type="text" name="name0"/></td></tr> <tr><td>Age</td><td><input type="text" name="age0"/></td></tr> </table> <input type="submit" name="SubmitMe" value="Submitted" /> </form> </body> </html> I first set the method for the form to GET and the page loaded again after the submit. When I changed the method back to POST, I received a Page Not Found error page. I created another page testform3.php to display the Form Values after submit. I changed the action on the form to testform3.php. I am frustrated. Once again the particulars of this server. Windows 2k Server SP4 IIS 5 PHP 5.04 MySQL 4.1.11

« previous php.windows (#25933) next »