ded Posted October 29, 2009 Share Posted October 29, 2009 I want to keep the value of what was selected for the filter <form name="form1"> <strong>Year:</strong> <select name="year"> <option value="2009">2009</option> <option value="2010">2010</option> </select> <strong>Region:</strong> <strong>State:</strong> <select name="state"> <option value="">All States</option> <option value="AL">Alabama</option> <option value="AK">Alaska</option> <option value="AZ">Arizona</option> <option value="AR">Arkansas</option> <option value="CA">California</option> <option value="CO">Colorado</option> <option value="CT">Connectictut</option> <option value="DE">Delaware</option> <option value="FL">Florida</option> <option value="GA">Georgia</option> <option value="HI">Hawaii</option> <option value="ID">Idaho</option> <option value="IL">Illinois</option> <option value="IN">Indiana</option> <option value="IA">Iowa</option> <option value="KS">Kansas</option> <option value="KY">Ketucky</option> <option value="LA">Louisiana</option> <option value="ME">Maine</option> <option value="MD">Maryland</option> <option value="MA">Massachusetts</option> <option value="MI">Michigan</option> <option value="MN">Minnesota</option> <option value="MS">Mississippi</option> <option value="MO">Missouri</option> <option value="MT">Montana</option> <option value="NE">Nebraska</option> <option value="NV">Nevada</option> <option value="NH">New Hampshire</option> <option value="NJ">New Jersey</option> <option value="NM">New Mexico</option> <option value="NY">New York</option> <option value="NC">North Carolina</option> <option value="ND">North Dakota</option> <option value="OH">Ohio</option> <option value="OK">Oklahoma</option> <option value="OR">Oregon</option> <option value="PA">Pennsylvania</option> <option value="RI">Rhode Island</option> <option value="SC">South Carolina</option> <option value="SD">South Dakota</option> <option value="TN">Tennessee</option> <option value="TX">Texas</option> <option value="UT">Utah</option> <option value="VT">Vermont</option> <option value="VA">Virginia</option> <option value="WA">Washington</option> <option value="WV">West virginia</option> <option value="WI">Wisconsin</option> <option value="WY">Wyoming</option> </select> <input type="submit" value="Filter Rankings" onClick="MM_jumpMenu('parent',this,0)"> </form> Please help! Quote Link to comment Share on other sites More sharing options...
haku Posted October 30, 2009 Share Posted October 30, 2009 Too vague. Quote Link to comment Share on other sites More sharing options...
ashton321 Posted November 2, 2009 Share Posted November 2, 2009 What filter are you speaking about? Quote Link to comment Share on other sites More sharing options...
jcombs_31 Posted November 3, 2009 Share Posted November 3, 2009 You'll need to do a check with either php or javascript and set selected=selected Quote Link to comment Share on other sites More sharing options...
xgrewellx Posted November 6, 2009 Share Posted November 6, 2009 Even though this is entirely too vague to answer, I'm going to go ahead and take a stab at what I think you'll want: $state = $_GET['state']; // You will put this next to each state inside the form tag <? if($state == 'AL'){ print 'selected="selected"'; } ?> and so on and so on Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.