note 33987 added to tutorial.oldcode
| From: | php-general at lists dot php dot net | Date: | Sat, 12 Jul 2003 22:33:51 +0000 |
| Subject: | note 33987 added to tutorial.oldcode | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-51989@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/tutorial.oldcode.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+33987
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+33987&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+33987&report=yes