note 50534 added to reserved.variables

From: Date: Wed, 02 Mar 2005 22:05:01 +0000
Subject: note 50534 added to reserved.variables
Groups: php.notes 
Request: Send a blank email to php-notes+get-85823@lists.php.net to get a copy of this message
It seems that if the current page was called with GET variables: http://www.example.com/index.php?delete_id=12?add_id=34 and if, in that same page, you are about to submit another form, this time with POST method, assigning the form the action: <?php $_SERVER['PHP_SELF'] ?> will keep the GET variables at their place! (delete_id=12?add_id=34) Rather, assign the form the action like this: <?php echo $_SERVER['PHP_SELF'] ; ?> this will call only index.php without any GET variables ---- Manual Page -- http://www.php.net/manual/en/reserved.variables.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+50534 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+50534&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+50534&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+50534&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+50534&report=yes&reason=useless Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+50534&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+50534&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#85823) next »