Hey i am creating an app that I need to have a certain range of months be in a drop down acording to a session variable. the user will choose a season then after two pages the months for that season wil lbe available in a dropdown to schedule events.
I was going to create an array of months and then call the months that I needed but am unsure how to code it.
I started with an array of all the months
$months(1=> jan) etc
then was having trouble setting up an if
if( $session[season] = 'Fall' ) {$ms = 8; $me =11}
then setting up a for loop to call the months array in and add one until it got to 11.
Is there an easier better way to code this?
Tom