So im thinking, if the ouput is liek this:
HTML Code:
<select name="id[3]" id="attrib-3">
<option value="2">Choose Size..</option>
<option value="5">Medium</option>
<option value="6">Large</option>
</select>
The default selected is the top (which is defined by the sort order which controls the order they are written to the page.
So if the url has ?optionselected=6
I could use a php GET and use the result to manipulate the select box liek this:
HTML Code:
<select name="id[3]" id="attrib-3">
<option value="2">Choose Size..</option>
<option value="5">Medium</option>
<option value="6" selected>Large</option>
</select>
so im guessing it'll be a variable that is set to nothing by default, for example
$selected = "";
and then
if option value == GET optionselected {
$selected = "selected";
}
What d'ya think?
Bookmarks