I want to use a variable passed in the URL in a page, but in some cases this variable might not be specified - in these cases using $_GET['variable'] breaks the page. Is there a way to check if the variable has been specified and if not default it, without breaking the page?
TIA,
Check out [man]isset/man and [man]empty/man
cheers, got it sorted now, code i used was:
if(isset($GET['var'])=="TRUE") {$var=$GET['var'];} else {$var="default";}
Thanks for your help (again! 🙂 )