On all of my webpage which require a submit action, the forms just reload as if nothing happened. I wrote a simple test code and I still can't get the form to work. I know they just stopped working within the last couple weeks since the update to php 5.2 Any help? Here is a sample test.. it doesn't work!!
thanks,
alex
Code:
<html>
<body>
<?php
if ($submit) {
// process form
echo 'ok';
while (list($name, $value) = each($HTTP_POST_VARS)) {
echo "$name = $value<br>\n";
}
} else{
// display form
?>
<form method="post" action="<?php echo $PHP_SELF?>">
First name:<input type="Text" name="first"><br>
Last name:<input type="Text" name="last"><br>
Address:<input type="Text" name="address"><br>
Position:<input type="Text" name="position"><br>
<input type="Submit" name="submit" value="Enter information">
</form>
<?php
} // end if
?>
</body>
alex
Comment