Student Registration Form in HTML 

Code:

<form action="result.php" method="post">
<table border="2" align="center" width="400px">
<tr>
<td colspan="2">
<center>
Student Registration Form </center> 
</td></tr><tr>
<td> Roll Number: </td>
<td> <input type="text" name="rollno"> </td>
</tr><tr>
<td> Name: </td>
<td> <input type="text" name="sname"> </td>
</tr><tr>
<td> Password: </td>
<td> <input type="password" name="pass"> </td>
</tr><tr>
<td> Gender </td>
<td> <input type="radio" name="gen" value="Male"> Male <br> 
<input type="radio" name="gen" value="Female"> Female
</td></tr><tr>
<td> Email: </td>
<td> <input type="text" name="email"> </td>
</tr><tr>
<td> Cell No: </td>
<td> <input type="text" name="cellno"> </td>
</tr><tr>
<td> DOB: </td>
<td> <input type="text" name="dob"> </td>
</tr><tr>
<td> Province </td>
<td> <select name="pro">
<option value="Punjab"> Punjab </option>
<option value="Sindh"> Sindh </option>
<option value="KPK"> KPK </option>
<option value="Sarhad"> Sarhad </option>
</select>
</td></tr><tr><td>
Games:
</td>
<td>
Cricket <input type="checkbox" name="game[]" value="Cricket" > <br> 
FootBall <input type="checkbox" name="game[]" value="Football" > <br>
Hockey <input type="checkbox" name="game[]" value="Hockey" > <br>
WaliBall <input type="checkbox" name="game[]" value="Waliball" > 
</td>
</tr><tr>
<td> Suggestion: </td>
<td><textarea rows="10" cols="20" name="suggestion"></textarea> </td>
</tr><tr> <td colspan="2"><center>
<input type="submit" name="submit" value="submit">
</center>
</td>
</tr>
</table>
</form>

Share To:

Adeel Rasheed

Full Stack Website Developer

Post A Comment:

0 comments so far,add yours