I need help with a simple year navigation script. What I am trying to do is make it so that when a page loads it loads with the current year.
$yr = date("Y");
After the page loads I need to be able to go to the previous year and the next year. I.E. <<2006>> Click the left button the year becomes 2005, click it again the year becomes 2004. Click the right button the year becomes 2005, click it again the year becomes 2006, and so on.
What is the best way to go about doing this? I have tried using session variables and
$_GET
to no avail. Please help.