Welcome visitor
* Login
* Register
It is currently July 23rd, 2019, 7:22 am
All times are UTC [ DST ]
* Search
View unanswered posts - View active topics

FORUMS » Client Side » HTML



Post new topic Reply to topic  [ 2 posts ] 
Author Message
  HELP with a form
PostPosted: March 14th, 2009, 1:15 am 
User avatar

Posts: 61
On my form i have 3 radio-inputs, how can i know wich is or are selected?


Top
 Profile  
 
  Re: HELP with a form
PostPosted: March 14th, 2009, 1:23 am 
User avatar

Posts: 136
In escence, radio buttons are used in groups that share the same name, e.g.
Cold<input type="radio" name="button">
Hot<input type="radio" name="button">
Free<input type="radio" name="button">

thus, "button" can only be hot OR cold OR free (sorry, im runing out of ideas ;) ).

But if you want to give the option of multiple selection then you should go for checkboxes. And if you want to know which ones were selected, right now i think that loops can do the work, i mean, evaluate through all the variables if an especific one was "sended" by the user (only the selected ones are posted). There should be easier ways to do it but im too lazy to look for more options, now thats up to you, :D

cheers


hey, check this out is for php cycles to validate those checkboxes, or visit the javascript section for more options..
http://scriptingok.com/forum/viewtopic.php?f=4&t=118


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

FORUMS » Client Side » HTML


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron