[PHP] Set a default global - $_GET[]

2002-09-25 Thread Patrick Lebon
How do i set a default value for a url parameter ($_GET[..]) in PHP 4.1? I currently have a class that sets a default global value but this does not work in this version - the script displays an error if no url value is passed in the url. Thanks -- PHP General Mailing List

RE: [PHP] Set a default global - $_GET[]

2002-09-25 Thread John Holmes
How do i set a default value for a url parameter ($_GET[..]) in PHP 4.1? I currently have a class that sets a default global value but this does not work in this version - the script displays an error if no url value is passed in the url. if(!isset($_GET['...'])) { $_GET['...'] == default