i want to apply validations in my registration forms for new users.here is the code of the form created.

<table cellpadding="3" cellspacing="7">
            <form action="#" method ="post" id="f1">
                <tr>
                             <td>Name</td>
                    <td><input type ="text" name ="named"></td>
                </tr>
                <tr>
                    <td>Username</td>
                    <td><input type ="text" name="usrnmd" value="Enter your email"/></td>
                </tr>
                <tr>
                    <td>Password</td>
                    <td><input type="password" name="pwdd"/></td>
                </tr>
                       <tr>
                    <td>Contact number</td>
                    <td><input type ="text" name="contctnod"></td>
                </tr>
                <tr>
                    <td>Age</td>
                    <td><input type="text" name ="aged"/></td>
                </tr>
                <tr>
                    <td>Date of Birth</td>
                    <td><input type="text" name="dobd" value="yyyy-mm-dd"/>
                    </td>
                </tr>
                <tr>
                    <td>Qualifications</td>
                    <td><input type="text" name="quald" /></td>
                </tr>
                <tr>
                    <td>Specialization</td>
                    <td><select name="spld">
                    <option>Allergy</option>
                    <option>Cardiology</option>
                    <option>Child specialist</option>
                    <option>Dental</option>
                    <option>Eye Surgery</option>
                    <option>Gynaecologist</option>
                    <option>Neurology</option>
                    <option>Orthopedic Surgery</option>
                    <option>Plastic Surgery</option>
                    <option>Psychiatry</option>
                    <option>Skin</option>
                        </select>
                    </td>
                </tr>
                <tr>
                    <td>Years of Experience</td>
                    <td><input type="text" name="expd"/></td>
                </tr>
                <tr>
                    <td>Location</td>
                    <td><input type="checkbox" name="locd" value="clinic">Personal Clinic
                    <input type="checkbox" name="loc" value="hospital">Hospital</td>
                </tr>
                <tr>
                    <td>Marital Status</td>
                    <td><select name="mard"><option value="single">Single</option>
                    <option value="married">Married</option></select></td>
               </tr>
               <tr>
                    <td>Gender</td>
                    <td><select name="gend"><option value="male">Male</option>
                     <option value="female">Female</option></select></td>
              </tr>
              <tr>
                  <td>Address</td>
                  <td><textarea name="addressd" rows="4" cols="20">
                      </textarea></td></tr>
              <tr>
                  <td>Consultation fee</td>
                    <td><input type="text" name="feed"/></td>
                </tr>
              <tr>
                  <td><input type="submit" name="submit1" value="Submit"/>
                  <input type="reset" name="btn2" value="Reset" onClick="loginpop.jsp"/>
                  <input type="button" name="btn3" value="Cancel" onClick="home.jsp"/></td>
              </tr>

            </form>
                     </table>

plz advice me how to apply validations in this form

these functions are not working when we use all functions together but are working properly when we use them individually....can anyone suggest any method to use them together ina single form

Which function does not work for you ???

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.