I have a select box like this
<select name="when" >
<option>Now (If Available) </option>
<option>Today</option>
<option>This Week</option>
</select>
I want to add something like this to the select box
value="<? if (isset($_POST['when'])) {echo $when;}?>">
So if the select box is set i want it to echo the selected option,
I am asking this for a form validation, if the form fails, the select box resets back to default, I dont want this to happen,
Any ideas,
Thanks for reading,