-
Notifications
You must be signed in to change notification settings - Fork 0
/
jaguar-signup.html
98 lines (96 loc) · 3.61 KB
/
jaguar-signup.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Jaguar -signin form</title>
<link rel="stylesheet" href="jaguar-signin.css">
<script>
function validation()
{
var f_name = document.form1.uname.value;
if(f_name.length>3){
pass
}
else if(name.length==0 || name.length<3)
{
alert("User Id should not be empty / Minimum 3 characters");
}
else{
pass
}
input=document.form1.passw.value;
var pass= /^(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{8,12}$/;
if(input.match(pass))
{
pass
}
else
{
alert('Use the following details to create password..!')
}
input1=document.form1.R-passw.value;
if (input==imput1){
pass
}
else{alert('Check your password')}
input=document.form1.id.value;
var email=/^\w+([\.-]?\w+)*@\w*(\.\w{2,3})$/;
if(input.match(email))
{
pass
}
else
{
alert('Mailid is Wrong...!')
}
var input=document.form1.ph.value;
var phno=/^\d{10}$/;
if(input.match(phno))
{
pass
}
else
{
alert("Check number");
return false;
}
}
</script>
</head>
<body>
<div class="container" id="wholepage">
<h2><center>JAGUAR OFFICIAL</center></h2>
<form name="form1" action="submit_form.php" method="post" onsubmit="return validation(event)">
<label id="fname">First Name:</label>
<input type='text' name ='uname' style="width: 30%" placeholder="Enter your name" required/><br>
<p class="p">*Minimum 3 letters required</p>
<label id="lname">Last Name:</label>
<input type='text' name ='vname' style="width: 30%" placeholder="Enter last name"/><br>
<label id="pass">Create your Password</label>
<input type="password" id="Pass" name="passw" style="width: 30%" placeholder="Type your password"/><br>
<label id="pass">Conform your Password</label>
<input type="password" id="R-Pass" name="R-passw" style="width: 30%" placeholder="Retype your password"/><br>
<label id="mail">Enter your Mail-id</label>
<input type="text" id="mail" name="id" tabindex="10" style="width: 30%" placeholder="Enter your mail-id"/><br>
<label id="num">Phone number</label>
<input type="number" id="num" name="ph" style="width: 30%" placeholder="Type you number" /><br>
<label>City:</label>
<input type='text' name ='city' style="width: 30%" placeholder="Type your city name" required/><br>
<label>Country</label>
<select type="text" id="country" name="country" style="width: 25%" placeholder="Country">
<option value="">Select country</option>
<option value="India">India</option>
<option value="canada">Canada</option>
<option value="usa">USA</option>
<option value="russia">Russia</option>
<option value="france">France</option>
<option value="germany">Germany</option>
<option value="australia">Australia</option>
<option value="others">others</option>
</select><br>
<input type="submit" name="submit" value="Submit" style="width: 30%"/>
</form>
</div>
</body>
</html>