note 52639 added to security.globals
| From: | lexcomputer at gmail dot com | Date: | Sun, 08 May 2005 03:42:06 +0000 |
| Subject: | note 52639 added to security.globals | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-89094@lists.php.net to get a copy of this message | ||
If your have already a thousand of variables in your php script and you have only GET and POST
method you can use this :
<?php
if(!empty($_GET)) extract($_GET);
if(!empty($_POST)) extract($_POST);
?>
on the the top of your php pages.
----
Manual Page -- http://www.php.net/manual/en/security.globals.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+52639
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+52639&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+52639&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+52639&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+52639&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+52639&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+52639&report=yes
Search -- http://master.php.net/manage/user-notes.php