Okay so here is where my problem is occurring. I have a set of code right here:
[php]$gSelect = $_POST[‘location’];
echo"
Year | Time | $gSelect |
---|
Year | Time | $_POST[‘Location[name]’] |
---|
Okay so here is where my problem is occurring. I have a set of code right here:
[php]$gSelect = $_POST[‘location’];
echo"
Year | Time | $gSelect |
---|
Year | Time | $_POST[‘Location[name]’] |
---|
Check out this tutorial, it should help you.
http://amecms.com/article/Retaining-Drop-down-Selection-After-Form-Submit
overly complicated way of doing
[php]<option value =‘Fayette’ <?=(isset($_POST['location']) == 'Fayette' ? "selected='selected' : '') ?>> Fayette County (IN) [/php]
Now if you have a crap load of locations for other states, then I would highly suggest a using an array, then something like the example in the post above. I can tell you from experience that it can get tedious doing it like what I did above.