note 34615 added to tutorial.oldcode

From: Date: Fri, 01 Aug 2003 08:14:15 +0000
Subject: note 34615 added to tutorial.oldcode
Groups: php.notes 
Request: Send a blank email to php-notes+get-53130@lists.php.net to get a copy of this message
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. ---- Manual Page -- http://www.php.net/manual/en/tutorial.oldcode.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+34615 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+34615&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+34615&report=yes

« previous php.notes (#53130) next »