-
Notifications
You must be signed in to change notification settings - Fork 4
/
individual.html
117 lines (103 loc) · 3.81 KB
/
individual.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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
<html>
<head>
<title>Individual Registration form</title>
<style>
.pass1{
height: 50px;
width: 200px;
border-radius: 4px;
border:2px solid grey;
}
#b1{
width: 80px;
height: 40px;
border: 0px;
color: white;
background-color: #33b5e5;
}
#b1:hover{
background-color: black;
color: white;
}
.bg{
background: linear-gradient(grey,white)
}
</style>
<script type="text/javascript">
function register()
{
var name = document.forms["RegForm"]["Name"];
var email = document.forms["RegForm"]["Email"];
var phone = document.forms["RegForm"]["Telephone"];
var what = document.forms["RegForm"]["Subject"];
var password = document.forms["RegForm"]["Password"];
var address = document.forms["RegForm"]["Address"];
if (name.value == "")
{
alert("Please enter your name.");
return false;
}
if (address.value == "")
{
alert("Please enter your address.");
return false;
}
if (email.value == "")
{
alert("Please enter a valid e-mail address.");
return false;
}
if (email.value.indexOf(".", 0) < 0)
{
alert("Please enter a valid e-mail address.");
return false;
}
if (phone.value == "")
{
alert("Please enter your telephone number.");
return false;
}
if (password.value == "")
{
alert("Please enter your password");
return false;
}
if (what.selectedIndex < 0)
{
alert("Please Select your course.");
return false;
}
else{
alert("Thanks For Registration!!, Successfull");
window.open("finalindiviual.html");
}
return true;
}
</script>
</head>
<body class="bg">
<div style="width: 38%; height: 540px; box-shadow: 5px 10px 12px grey; font-family: cursive; border: 1px solid black; margin-left: 340px; background-color: white; margin-top: 50px;">
<div style="height: 50px; background-color: #9933cc; color: white; font-size: 30px; text-align: center; font-family: cursive;">
Individual Registration Form
</div>
<form name="RegForm" action="connect.php" style="text-align: left; padding-left: 90px;" onsubmit="return register()" method="post">
<p>Name: <input type="text" name="Name" placeholder="Name" style="text-align: center; height: 40px;"> </p>
<p>Address: <input type="text" name="Address" placeholder="Address" style="text-align: center; height: 40px;"> </p>
<p>Email: <input type="email" name="Email" placeholder="Email" style="text-align: center; height: 40px;"></p>
<p>Password: <input type="password" name="Password" placeholder="Password" style="text-align: center; height: 40px;"> </p>
<p>Phone No: <input type="tel" name="Telephone" placeholder="Mobileno." style="text-align: center; height: 40px;"> </p>
<p>Aadhar No: <input type="number" name="aid" placeholder="Aadhar id" style="text-align: center; height: 40px;"> </p>
City
<select name="Subject" style="height: 40px; width: 173px;">
<option>Kalyan</option>
<option>Kurla</option>
<option>MiraRoad</option>
<option>Titwala</option>
</select><br><br>
<p><input id="b1" type="submit" value="Submit" name="Submit">
<input id="b1" type="reset" value="Reset" name="Reset">
</p>
</form>
</div>
</body>
</html>