Organizational Research By

Surprising Reserch Topic

keep values selected after form submission


keep values selected after form submission  using -'php,javascript,html,wordpress,forms'

<form method="get" action="">
   <select name="name">
      <option value="a">a</option>
      <option value="b">b</option>
   </select>
   <select name="location">
      <option value="x">x</option>
      <option value="y">y</option>
   </select>
   <input type="submit" value="Submit" class="submit" />
</form>


On submitting the form, how do I make sure that the selected values remain selected in the dropdowns? This form is inside wordpress (PHP).
    

asked Sep 30, 2015 by tushar2k6
0 votes
9 views



Related Hot Questions

8 Answers

0 votes
NULL
answered Sep 30, 2015 by deepak07.s
0 votes
NULL
answered Sep 30, 2015 by devkumargupta
0 votes
NULL
answered Sep 30, 2015 by virendra.bajaj
0 votes
NULL
answered Sep 30, 2015 by sumit_jaiswalmca
0 votes
NULL
answered Sep 30, 2015 by abhimca2006
0 votes
NULL
answered Sep 30, 2015 by yogeshplv
0 votes
NULL
answered Sep 30, 2015 by r3tt
0 votes
NULL
answered Sep 30, 2015 by kinnari

...