0

What is the function of value=1

As in this case value value=male: <input type="radio" name="gender" value="male" /> Male <br /> <input type="radio" name="gender" value="female" /> Female <br />

11th Mar 2017, 5:42 PM
Emmanuel Etuk
Emmanuel Etuk - avatar
2 Respuestas
+ 14
When using a form, value dictates what that form's selections were when it's sent in. PHP and I think JavaScript handle those values. Ex: If you have radio buttons asking for a user's gender, their values might be "M" and "F", respectively.
11th Mar 2017, 5:53 PM
Tamra
Tamra - avatar
+ 1
something like this: <input type="radio" name="gender" value="male" /> Male <br /> <input type="radio" name="gender" value="female" /> Female <br />
11th Mar 2017, 6:18 PM
Emmanuel Etuk
Emmanuel Etuk - avatar