Go4Expert (http://www.go4expert.com/)
-   Web Design, HTML And CSS Forums (http://www.go4expert.com/forums/web-design-forum/)
-   -   Code for radio button (http://www.go4expert.com/forums/code-radio-button-t24128/)

newphpcoder 9Dec2010 12:46

Code for radio button
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...

shabbir 9Dec2010 15:39

Re: Code for radio button
PHP does not have a Radio button and it is in HTML and so moved your thread to HTML forum

Use the following code


<INPUT TYPE="radio" NAME="">

kumarpyasa 22Mar2011 15:44

Re: Code for radio button
Hello dear
code for radio button
<input type="radio" name=""><p>

<input type="radio" name="">

pyasakumar 12Apr2011 16:55

Re: Code for radio button
Hello dear
Code for Radio Button
<input type="radio" name="male">
<input type="radio" name="Female">

mialuzzatto 9Sep2015 19:00

Re: Code for radio button

Please check code....

<!DOCTYPE html>

<form action="">
<input type="radio" name="sex" value="male">Male<br>
<input type="radio" name="sex" value="female">Female

<p><b>Note:</b> When a user clicks on a radio-button, it becomes checked, and all other radio-buttons with equal name become unchecked.</p>


Mia Luzzatto

All times are GMT +5.5. The time now is 20:56.