<form method="post" onsubmit="return(validate());">
<input type="text" name="fname" id="fname" placeholder="First Name" onblur="isFirstname()"/>
<label name="errfirstname" id="errfirstname" style="float:right;padding-right:150px;color:red;"></label>
<input type="text" name="lname" id="lname" placeholder="Last Name" onblur="isLastname()"/>
<label name="errlastname" id="errlastname" style="float:right;padding-right:150px;color:red;"></label>
<input type="textarea" name="addr" id="addr" placeholder="address" onblur="isAddress()"/>
<label name="erraddress" id="erraddress" style="float:right;padding-right:150px;color:red;"></label>
<input type="textarea" name="addr1" id="addr1" placeholder="Shipping Address" onblur="isAddress1()"/>
<label name="errshipadd" id="errshipadd" style="float:right;padding-right:150px;color:red;"></label>
<input type="text" name="txtzip" id="txtzip" placeholder="Pincode" onblur="ispincode()"/>
<label name="errpin" id="errpin" style="float:right;padding-right:150px;color:red;"></label>
<input type="email" name="email" id="email" placeholder="email" onblur="isEmail()"/>
<label name="erremail" id="erremail" style="float:right;padding-right:150px;color:red;"></label>
<input type="password" name="pass" id="pass" placeholder="password" onblur="ispass()"/>
<label name="errpass" id="errpass" style="float:right;padding-right:150px;color:red;"></label>
<input type="text" name="txtmo" id="txtmo" placeholder="mobile" onblur="isMobile()"/>
<label name="errmo" id="errmo" style="float:right;padding-right:150px;color:red;"></label>
<input type="text" name="txtpho" id="txtpho" placeholder="Phone number" onblur="isMobile1()"/>
<label name="errpho" id="errpho" style="float:right;padding-right:150px;color:red;"></label>
<select name="co" id="co" onblur="isCountry()">
<option selected value="">------Select Your Country------</option>
<?php
$sql=mysql_query("select * from country"); while($row=mysql_fetch_array($sql)) {
?>
<option value="<?php echo $row[0]; ?>"><?php echo $row[1]; ?></option>
<?php } ?>
</select>
<label name="errcountry" id="errcountry" style="float:right;padding-right:150px;color:red;"></label>
<select name="st" id="st" onblur="isst()">
<option selected value="">------Select Your State------</option>
<?php
$sql1=mysql_query("select * from state"); while($row1=mysql_fetch_array($sql1)) {
?>
<option value="<?php echo $row1[0]; ?>"><?php echo $row1[1]; ?></option>
<?php } ?>
</select>
<label name="errst" id="errst" style="float:right;padding-right:150px;color:red;"></label>
<select name="ct" id="ct" onblur="isct()">
<option selected value="">------Select Your City------</option>
<?php
$sql2=mysql_query("select * from city"); while($row2=mysql_fetch_array($sql2)) {
?>
<option value="<?php echo $row2[0]; ?>"><?php echo $row2[1]; ?></option>
<?php } ?>
</select>
<label name="errct" id="errct" style="float:right;padding-right:150px;color:red;"></label>
<label></label>
<button type="submit" name="sbt" class="btn btn-default">Signup</button>
</form>
Sunday, 24 May 2015
Jquery validation page 2
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment