Posted by SterLo on 05/10/07 14:42
The best solution for this isn't a long conditional statement. Do this - which is in my opinion the best way to handle most variables that are being set dynamically. $self = (isset($_GET["search"])) ? $_GET["search"] : NULL; That statement can be read as: The variable $self equals $_GET["search"] if it is set otherwise it is equal to NULL.
[Back to original message]
Copyright © 2005-2006 Powered by Custom PHP Programming