Professional Documents
Culture Documents
<!doctype html>
<html>
<head>
<title>SIGNUP PAGE</title>
<style>
div
{
margin:0px auto;
width:50%;
padding:30px;
font-size:20px;
background-color:#4e2a38;
color:white;
}
input[type=text],select
{
width:95%;
padding:12px 20px;
margin:8px 0;
display:inline-block;
border:1px solid #AAA
box-sizing:border-box;
font-size:14px;
}
input[type=submit]
{
width:100%;
background-color:#003399;
color:white;
padding:14px 20px;
margin:8px 0;
border:none;
border-radius:4px;
cursor:pointer;
font-size:16px;
}
input[type=submit]:hover
{
background-color:#2F4F4F;
}
h1
{
color:BlueS;
text-align:center;
}
</style>
<script>
function validate()
{
var Email=/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/g;
var Phone=/^\d{10}$/;
var Name = /\d+$/g;
var fname=document.getElementById("fname").value;
var lname=document.getElementById("lname").value;
var email=document.getElementById("email").value;
var pass1=document.getElementById("pass").value;
var pass2=document.getElementById("cpass").value;
var phone=document.getElementById("phone").value;
if(pass1.length <6){
alert("Password should be atleast 6 character long");
pass1.focus();
return false;
}
if(pass1 != pass2){
alert("Password should be same");
pass2.focus();
return false;
}
}
</script>
</head>
<body>
<h1><U>SIGNUP PAGE</U></h1>
<div>
<form name="reg" method="post" onsubmit="validate( )">
<input type="text" id="fname" name="firstname" placeholder="Enter First Name">
<br><br><label for="age">AGE</label><br>
<input type="radio" name="age" value="18-">Below 18-
<input type="radio" name="age" value="18+">Above 18+<br><br>
</form>
</div>
</body>
</html>