Select box listing in php

Hi Friends,

I have two select box one is years listing and another one is months listing.

years
-----
fresher
0
1
2
3
4
5

months
-------
1
2
3
4
etc

My expecting output are listed below.

1: When the page loads, months select box will hide and years select box will show.
2: When we click on years 1 to 5, months select box will show. 3: When we click on fresher in years select box, months select box will be hide.

You'll notice that although the code above will work, I'm not doing everything for you, you should be able to take that and make it work for yourself!
Have fun (and please, feel free to post back if you get stuck!)

"For if leisure and security were enjoyed by all alike, the great mass of human beings who are normally stupefied by poverty would become literate and would learn to think for themselves; and when once they had done this, they would sooner or later realise that the privileged minority had no function and they would sweep it away"
- George Orwell, 1984

You'll notice that although the code above will work, I'm not doing everything for you, you should be able to take that and make it work for yourself!
Have fun (and please, feel free to post back if you get stuck!)