Get value of select field on load
Posted on 2012-09-08
I have a select field and I want it so that when people go back it loads the previous selection. By default the browser posts the select field but I want it to echo the value.
<option value="Make 1">Make 1</option>
<option value="Make 2">Make 2</option>
If option 1 was selected and the form was submitted then when someone pushes the back button I want it to echo the value of the option 1.
Hope that makes sense.