posting data to same form document problem
| From: | Stefan H�gdahl | Date: | Wed, 25 Oct 2000 21:30:42 +0000 |
| Subject: | posting data to same form document problem | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-3483@lists.php.net to get a copy of this message | ||
Hi.
I'm having problems with making a form post data to the same document
containing the form code 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.
Filename : form.php4
<HTML><HEAD><TITLE>Posting formdata to form.php4</TITLE></HEAD>
<BODY>
<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>
</BODY>
</HTML>
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