Hi.
I'm having problem with making a form post data to the same form document when clicking on the submit button.
Check out the code below, it works perfectly under Linux, but not in Win2k/IIS5 with PHP v. 4.0.3pl1.
<FORM METHOD="POST" ACTION="form.php4">
<INPUT TYPE="HIDDEN" NAME="countpost" VALUE="<?php print $countpost +1; ?>">
<?PHP
if ($countpost == 0) {
print "1";
} elseif ($countpost == 1) {
print "2";
}
?>
<INPUT TYPE="SUBMIT" NAME="Submit">
</FORM>
I do have these options defined as on:
register_globals
magic_quotes_gpc
I'd really appreciate any kind of feedback concerning this issue.
Thanks,
/Stefan Högdahl