Hello Brian,
Wednesday, May 26, 2004, 4:01:30 PM, you wrote:
BD> How do I check for the presence of an optional $_GET param without
BD> throwing a "Notice: Undefined index" when the param is not present?
BD> Tried all three of these, they all produce the Notice when the param is
BD> not passed:
BD> if ($_GET['id'])
BD> if ($_GET['id'] != "")
BD> if (isset $_GET['id'])
if (isset($_GET['id']))
{
$id = $_GET['id'];
}
Best regards,
Richard Davey
--
http://www.launchcode.co.uk - PHP Development Services
"I am not young enough to know everything." - Oscar Wilde
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php