I'm not quite sure what you mean? Can you give me an example and/or a link to a page where you are experiencing this problem?
Hi brian,
Thanks for your reply.The link is www.kbs.gov.my. When i click the link for next month and year for january 2005, the calendar change to january 2004 again. Why the calendar did not change to january 2005?
The calendar is functioning as is should. I think you may have another script on the page that uses the same $yr variables as the calendar script (I see a lot of dates on the page) and this other script is resetting that variable back to 2004. If you look at the actual calendar link that you click to view the next month, you'll see that yr=2005. This is what it should be. So there is something else changing this before the calendar script can see it.
You may need to edit your page and add a line at the very to top capture the $yr variable into another unique variable. Then, just before requiring the actual calendar script, change the $yr variable back to the one it was set to at the beginning on your page.