Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <form id="myForm" method="POST" action="index.html">
- <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/>
- <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/>
- <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/>
- <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/>
- <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/>
- <button class="button" type="submit" value="Submit">Register</button>
- </form>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement