note 50534 deleted from reserved.variables by philip
| From: | philip@php.net | Date: | Wed, 21 Feb 2007 16:13:12 +0000 |
| Subject: | note 50534 deleted from reserved.variables by philip | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-123654@lists.php.net to get a copy of this message | ||
Note Submitter: z dot stolar at gmail dot com
----
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