
Here is my form and what code should i write for validating it? -
<form action="test4.jsp">
<ul>
<b>User ID</b> :<input type="text" name="userid">
<b>Password</b> :<input type="Password" name="passo"></br>
</br>
<li>
<b>User Name</b> :<input type="text" name="username">
</br>
</br>
</li>
<b>Date of birth</b> :<input type="date" name="dob">
<b>Place of Birth</b> :<input type="text" name="pob">
</br>
</br>
<li>
<b>Gender</b> :<input type="text" name="gend">
</br>
</br>
</li>
<b>Father's name</b> :<input type="text" name="fname">
<b>Mother's name</b> :<input type="text" name="mname">
</br>
</br>
<li>
<b>Contact</b> :<input type="text" name="cont">
</br>
</br>
</li>
<li>
<b>Address</b> :<input type="text" name="add">
</br>
</br>
</li>
<li>
<b>City</b> :<input type="text" name="city">
</br>
</br>
</li>
<li>
<b>State</b> :<input type="text" name="state">
</br>
</br>
</li>
<HR><HR>
<li>
<input type="submit" name="subt" value="SUBMIT">
<input type="submit" name="canc" value="CANCEL">
</li>
</ul>
</form>
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.