Log in

View Full Version : Code for radio button



rhodarose
12-09-2010, 06:58 AM
Good day!

I never used radio button. Now I need to add radio button in my webpage. Radio button 1 is mother and radio button 2 is child. Is it in my database it is only 1 field or separate field one for mother and one for child?

Kindly give me a code for radio button.

Thank you...

Nile
12-09-2010, 12:47 PM
A set of radio buttons have the same name, that way the value can be passed on to the one selected. For example, under "Favorite Animals" there might be dog, cat, and bear. Dog, cat, and bear would all have the name 'animal' and whichever one was clicked on is the value of animal.

What's your question?