note 34615 deleted from tutorial.oldcode by didou
| From: | didou@php.net | Date: | Fri, 01 Aug 2003 08:24:18 +0000 |
| Subject: | note 34615 deleted from tutorial.oldcode by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-53132@lists.php.net to get a copy of this message | ||
Note Submitter: cesoid@yahoo.com
----
I would like to present a method for fixing the old code which is easier to understand and, unless
dealing with many variables, either shorter are marginally longer than the other alternative:
$name = $_REQUEST['name'];
$email = $_REQUEST['email'];
$favorite_color = $_REQUEST['favorite_color'];
isset error checking can then be performed on the shorter named variables, as you would assume, if
necessary, has already been performed in the original code.