Advertisement
Guest User

Untitled

a guest
Mar 30th, 2015
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.52 KB | None | 0 0
  1. <form id="myForm" method="POST" action="index.html">
  2.                         <input id="field_name" type="text" name="name" placeholder="Name" title="Enter your name." required pattern="\w+" name="name" oninvalid="this.setCustomValidity('Name cannot be empty.')" onchange="this.setCustomValidity('')"><br/>
  3.                         <input id="field_surname" type="text" name="sname" placeholder="Surname" title="Enter your surname." required pattern="\w+" name="surname" oninvalid="this.setCustomValidity('Surname cannot be empty.')" onchange="this.setCustomValidity('')"><br/>
  4.                         <input id="field_username" placeholder="Username" title="Username must not be blank and contain only letters, numbers and underscores." type="text" required pattern="\w+" name="username" oninvalid="this.setCustomValidity('Username cannot be empty.')" onchange="this.setCustomValidity('')"><br/>
  5.                         <input id="field_pwd1" placeholder="Password" title="Password must contain at least 6 characters, including UPPER/lowercase and numbers." type="password" required pattern="(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{6,}" name="pwd1" oninvalid="this.setCustomValidity('Password is not valid.')" onchange="this.setCustomValidity('')"><br/>
  6.                         <input id="field_pwd2" placeholder="Confirm password" title="Please enter the same Password as above." type="password" required pattern="(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{6,}" name="pwd2" oninvalid="this.setCustomValidity('Passwords do not match.')" onchange="checkPasswords();"><br/>
  7.                         <button class="button" type="submit" value="Submit">Register</button>
  8.                     </form>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement