note 33986 added to language.variables.external
| From: | nospam at rack1 dot php dot net | Date: | Sat, 12 Jul 2003 22:32:07 +0000 |
| Subject: | note 33986 added to language.variables.external | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-51988@lists.php.net to get a copy of this message | ||
Sorry for the multiple posts. Here's yet another way of doing the same thing:
$expected=array(
'name', // Only accept these variables from a submit!
'email',
'favorite_color'
); foreach ($expected as $formvar)
$$formvar = (isset($_REQUEST[$formvar]))?$_REQUEST[$formvar]:NULL;
----
Manual Page -- http://www.php.net/manual/en/language.variables.external.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+33986
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+33986&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+33986&report=yes