Advertisement
jhei13

form validation

Mar 18th, 2015
262
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.90 KB | None | 0 0
  1. <body>
  2.            
  3.         <div id = "content">
  4.             <form id="myform">
  5.                     Firstname<br>
  6.                     <input type="text" size="43" name="name" pattern="[A-Z a-z]+" title="Must contain text only" onKeyPress="checkCapsLock( event )"value placeholder="Input  Firstname"  required><br>
  7.                     <br>
  8.                     Lastname: <br>
  9.                     <input type="text" size="43" name="name" pattern="[A-Z a-z]+" title="Must contain text only" onKeyPress="checkCapsLock( event )" value placeholder="Input  Lastname" required><br>
  10.                     <br>
  11.                     Your E-mail : <br>
  12.                     <input type="text" size="43" name="email" pattern="[a-z0-9._]+@[a-z0-9.-]+" title="Must  contain @ sign" value placeholder="Input  your E-mail" required ><br>
  13.                     <br>
  14.                     Password:<br>
  15.                      <input type="password" size="43" name="pw" pattern="(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{8,}"
  16.                                         title="Must contain at least one number and one uppercase and lowercase letter, and at least 8 or more characters" value placeholder="Input  Password" required><br>
  17.                     <br>
  18.                     Country:<br>
  19.                     <select name= "country" required>
  20.                     <option value="Australia">Australia</option>
  21.                     <option value="Badakhshan">Badakhshan</option>
  22.                     <option value="Canada">Canada</option>
  23.                     <option value="Denmark">Denmark</option>
  24.                     <option value="England">England</option>
  25.                     <option value="United State of America">United State of America</option>
  26.                     <option value="Philippines">Philippines</option>
  27.                     </select><br>
  28.                     <br>
  29.                      Gender: &nbsp &nbsp
  30.                     <input type="radio" name="colors" id="red">  Male
  31.                     <input type="radio" name="colors" id="blue"> Female<br>
  32.                     <br>
  33.                     Language: <input type="checkbox" id="myCheck">English
  34.                      <input type="checkbox" id="myCheck">Tagalog
  35.                     <input type="checkbox" id="myCheck">Bisaya<br>
  36.                     <br><center>
  37.                     <input type="submit" value="CLICK TO CONFIRM "> &nbsp  &nbsp <input TYPE="Reset" value="CANCEL">
  38.                     </center>
  39.             </form>
  40.     </body>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement