[eluser]Wondering Coder[/eluser]
I've been working on my application for quite a while now and I have many forms in it. My problem is when a form is submitted it prefill or display the menu item that I select but when I refresh the page it return to my first option.
Code:
<select name="myselect">
<option value="">Choose one</option>
<option value="one" <?php echo set_select('myselect', 'one'); ?> >One</option>
<option value="two" <?php echo set_select('myselect', 'two'); ?> >Two</option>
<option value="three" <?php echo set_select('myselect', 'three'); ?> >Three</option>
</select>
What I want is even if I refresh the page it will still display the selected item.