Bug #18088: $_GET variables are improper set when POST form submittion follows GET method
From: gryaznov@guta.ru
Operating system: Win2K (at least)
PHP version: 4.2.1
PHP Bug Type: Variables related
Bug description: $_GET variables are improper set when POST form submittion follows GET method
Here is the test (file test.php):
<HTML>
<BODY>
<FORM NAME=test.php METHOD=GET>
<INPUT TYPE=HIDDEN NAME=start value=1>
<INPUT TYPE=SUBMIT VALUE=SET>
</FORM>
<FORM NAME=test.php METHOD=POST>
<INPUT TYPE=SUBMIT VALUE=NOTSET>
</FORM>
<BR>
start value is: <?php echo $start ?><BR>
</BODY>
</HTML>
When you click "set" button in browser, $start variable will be 1, when
you click "notset" button after clicking "set" $start variable will be 1
also. Note: if register_globals is off you will need to use $_GET["start"]
instead of $start, but it works also. (Though the method was POST, $_GET
start variable should not be set)
--
Edit bug report at http://bugs.php.net/?id=18088&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=18088&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=18088&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=18088&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=18088&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=18088&r=support
Expected behavior: http://bugs.php.net/fix.php?id=18088&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=18088&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=18088&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=18088&r=globals
Thread (5 messages)
- gryaznov at guta dot ru