note 19932 added to language.variables.predefined
| From: | tlesinsk at ec-lyon dot fr | Date: | Fri, 15 Mar 2002 11:16:54 +0000 |
| Subject: | note 19932 added to language.variables.predefined | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-27833@lists.php.net to get a copy of this message | ||
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.
--
http://www.php.net/manual/en/language.variables.predefined.php
http://master.php.net/manage/user-notes.php?action=edit+19932
http://master.php.net/manage/user-notes.php?action=delete+19932
http://master.php.net/manage/user-notes.php?action=reject+19932