note 19932 deleted from language.variables.predefined by curt
| From: | curt@php.net | Date: | Tue, 06 Jul 2004 02:55:48 +0000 |
| Subject: | note 19932 deleted from language.variables.predefined by curt | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-72656@lists.php.net to get a copy of this message | ||
Note Submitter: tlesinsk@ec-lyon.fr
----
Even without auto-registered globals you can find back your form-generated globals while ensuring
their provenance : simply do
extract($_POST);
Beware, though, that it could replace other globals if post fields and script globals bear the same
name - this could be a vulnerability of the method. So, use
extract($_POST, EXTR_SKIP);
if you can ensure your post globals are previously unset.