note 25610 added to language.operators.comparison
| From: | tim at pollenation dot net | Date: | Mon, 30 Sep 2002 11:48:55 +0000 |
| Subject: | note 25610 added to language.operators.comparison | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-37421@lists.php.net to get a copy of this message | ||
When register_globals is turned off (as it always should be) a good way to check for request
variables is to use the isset function with the ternary operator.
$var = ( isset($_REQUEST['var']) ? $_REQUEST['var'] : '' )
I've used this extensivley on http://www.pollenation.net and in combination with the smarty
template system and apache rewrite, handles all of the navigation (directories are turned into
request variables which are then checked for in the application routine).
--
http://www.php.net/manual/en/language.operators.comparison.php
http://master.php.net/manage/user-notes.php?action=edit+25610
http://master.php.net/manage/user-notes.php?action=delete+25610
http://master.php.net/manage/user-notes.php?action=reject+25610