Thread: $_GET error
View Single Post
Old 08-14-2009, 12:53 PM   #2 (permalink)
Salathe
Moderateur
RegEx Guru PHP Guru Top Contributor Advanced Programmer 
 
Salathe's Avatar
 
Join Date: Apr 2007
Posts: 1,393
Thanks: 5
Salathe is on a distinguished road
Default

You need to check if the year was provided, if not use current as a default.
PHP Code:
$year = isset($_GET['year']) ? $_GET['year'] : 'current'
Salathe is offline  
Reply With Quote
The Following User Says Thank You to Salathe For This Useful Post:
Tanax (08-14-2009)