+ 1
what is the solution for creating forms for male and female?
5 Respostas
+ 1
<form>
<!-- Other form fields here -->
<input type="radio" name="gender" value="male" checked> Male<br>
<input type="radio" name="gender" value="female"> Female
</form>
+ 1
@Rezaul 'name' should be the same for both. If the form data is to be stored in a user or customer database, there'll be a column called 'gender'. Each row would for instance be: firstName, lastName, age, gender, password..
0
try to use radiobuttons
0
You can use
<input type="radio" name="male" value="male">Male<br/>
<input type="radio" name="female" value="female">female<br/>
0
thanks you guys I managed to solve the problem