1
I have the following code:
<p>Status</p>
<select id="st" name="st" value="<?php echo $DsStatus; ?>" />
<option value="0">➖</option>
<option value="1">➖⬆</option>
<option value="2">➖⬇</option>
<option value="3">↑➖</option>
<option value="4">↓➖</option>
<option value="5">↑⬇</option>
<option value="6">↓⬆</option>
</select>
<input type="submit" class="round success button" value="Aplicar"/>
I need that after I click on Submit(apply) and return to the select page it is selected in the option I marked when I gave Submit(apply).
back to select page?
– Marconi
You are wanting to do an autorefresh with correct Submit?
– user28595
I’m going to give him Ubmit, he’s going to leave this page, he’s going to go to another page, I just need that when I come back he takes the value that was saved. This page is a page that edits information so I need.
– KevinF
You can do with ajax or, check if the
$_POST
exist, and make an if if the value sent is equal to the option, and put theselected="selected"
– rray
It can be based on : http://answall.com/q/106370/91
– rray
simple, use $_SESSION
– Bia