I am unable to display PHP pages generated by a submission of a form using a POST method. To illustrate this, I created a very simple form called TestForm.php .
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.
Windows 2k Server SP4
IIS 5
PHP 5.04
MySQL 4.1.11
Any and all help would be appreciated.
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "[URL unfurl="true"]http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">[/URL]
<html xmlns="[URL unfurl="true"]http://www.w3.org/1999/xhtml">[/URL]
<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>
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.
Windows 2k Server SP4
IIS 5
PHP 5.04
MySQL 4.1.11
Any and all help would be appreciated.