Thread: $_GET error
View Single Post
Old 08-14-2009, 04:40 PM   #4 (permalink)
adamdecaf
The Addict
 
Join Date: May 2009
Posts: 287
Thanks: 5
adamdecaf is on a distinguished road
Default

Quote:
Originally Posted by Tanax View Post
Yea, I tried like this:
PHP Code:
if(isset($_GET['year'])) $year $_GET['year']; 
But that didn't work. Your code worked however. So thanks!
His worked because you were not setting a default value if none was found, so PHP was using a[n] ''. <-- {Blank Space}
__________________
My Site
adamdecaf is offline  
Reply With Quote
The Following User Says Thank You to adamdecaf For This Useful Post:
Tanax (08-14-2009)