View Full Version : keeping radio button selected
duniyadnd
12-12-2002, 01:29 AM
I have a bunch of radio buttons for a form which comes back to the same page over and over again. I was curious if I wanted to keep the same radio button selected when I press the submit button, how would i go about that?
Thanks
Duniyadnd
whammy
12-12-2002, 03:50 AM
It depends... are you just using client-side HTML or are you using a server-side language? Can you post a URL to your page?
duniyadnd
12-12-2002, 04:40 AM
it's client side and i want to avoid using server side languages. Just wondered if it was possible with javascript, and not to use cookies.
Sorry, don't have an example online.
duniyadnd
duniyadnd
12-12-2002, 08:01 AM
figured out what i wanted for this vague question, instead of having
input type="submit"
have
input type="button"
duniyadnd
whammy
12-13-2002, 01:20 AM
You can also do it by passing variables from page to page using the "get" method, and then parsing the variable out of the querystring.
See this post for many examples:
http://www.codingforums.com/showthread.php?s=&threadid=4555
;)
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.