<html>
<body>
<?php
if ($submit) {
// process form
echo("submitted");
}
} else{
// display form
?>
<form method="post" action="<?php echo $PHP_SELF?>">
First name:<input type="Text" name="first"><br>
<input type="Submit" name="submit" value="Enter information">
</form>
<?php
} // end if
?>
</body>
</html>
For the above code, when I press submit, the line "submitted" is seen in IE when the script is run in a server. However, when it is run in my own server, the form simply clears, which means that the value of submit cannot be passed. May anyway tell me what's wrong with my php config. that leads to this problem?
I am using Apache1.3 +php4.2+mySQL+winXP