Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Submiting forms with Radio Boxes?

Status
Not open for further replies.

Kingmarl

Programmer
Mar 22, 2001
48
GB
How the Heck do I submit a form with a Radio Button???

I've tried to rip all sorts of 'iccle bits of Java codes & scripts from my archive but nothing seems to work... and I have found that this is about the hardest command to find on the net. Probably because it's so simple, even so, I can't do it.

Someone please help me!!!! ----------------------------------------
Don't forget to visit for some banging new music from DJ Cumback
 
What exactly is not working? If it is not selected it will not pass. This is not ok for you? DeZiner
Never be afraid to try something new.
Remember that amateurs built the Ark.
Professionals built the Titanic
 
You missunderstand me, I need to submit a form, when an option on a radio button is selected, rather than with a submit button.

I've been building pages for ages in D/W Ultradev, and add no end of my own code, but this is just one of those things I've never even looked into.

PLEASE HELP!!!!!!!!!!! ----------------------------------------
Don't forget to visit for some banging new music from DJ Cumback
 
maybe you need a Javascript onchange function that then submits the form Live long and make your kids suffer..
 
ok, here is what I would do:

use GUJUm0deL's code, only with the onclick event handler.

onchange works, but onclick was taylored for everything except select boxes.
Robert Carpenter
questions? comments? thanks? email me!
linkemapx@hotmail.com
Icq: 124408594
online.dll

AIM & MSN: robacarp
 
My script was designed for use with radio buttons because on my site I do the same thing that Kingmarl wants to do. On my site, if the user selects the YES radio button page one loads, if the user cks the NO radio button then another page loads instead... I have not failed; I merely found 100,000 different ways of not succeding...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top