-
Notifications
You must be signed in to change notification settings - Fork 0
/
registration.html
180 lines (158 loc) · 4.96 KB
/
registration.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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
<!DOCTYPE html>
<html>
<head>
<title>Posted validation form</title>
<link rel="stylesheet" type="text/css" href="styleSheet.css">
<script type="text/javascript">
function validation()
{
if (document.form.fName.value == "" || !isNaN(document.form.fName.value))
{
alert("Enter First name which contain alphabet");
document.form.fName.focus();
return false;
}
if (document.form.mName.value == "" || !isNaN(document.form.mName.value))
{
alert("Enter Last name which contain alphabet");
document.form.mName.focus();
return false;
}
if (document.form.sName.value == "" || !isNaN(document.form.sName.value))
{
alert("Enter Last name which contain alphabet");
document.form.sName.focus();
return false;
}
var emailid = document.form.email.value;
posat = emailid.indexOf("@");
posdot = emailid.lastIndexOf(".");
if(posat < 1 || posdot - posat < 2)
{
alert("invalid email");
document.form.email.focus();
return false;
}
if(document.form.pWord.value.length < 10)
{
alert("Enter password with atleast 10 character!");
document.form.pWord.focus();
return false;
}
}
</script>
</head>
</html>
<body class="image">
<nav>
<input type="checkbox" id="check">
<label for="check" class="checkbtn">
<i class="fas fa-bars"></i>
<label class="logo">whoIsTwalibu?</label>
<ul>
<li><a class="active" href="website.html">home<a></li>
<li><a href="about.html">about me<a></li>
<li><a href="registration.html">register<a></li>
<li><a href="login.html">courses<a></li>
<li><a href="CV.html">CV<a></li>
<li><a href="contact.html">contact menu<a></li>
</ul>
</nav>
<section></section>
<h2 style="color:#FFFFFF" align="center">register yourself below in order to be accessed to view other Twalibu's informations.</h2><br>
<center>
<form action="post2db.php" method="POST" name="form" onsubmit ="return validation();">
<table style="background-color:#708090;">
<tr style="color:#FFFFFF">
<th><h1>registration form</h1></th>
</tr>
<tr>
<td><label>PERSONAL INFOMATIONS:</label><br></td>
</tr>
<tr>
<td><label>First name:</label><br></td>
<td><input type="text" name="fName" id="fName"><br></td>
</tr>
<tr>
<td><label>Middle name:</label><br></td>
<td><input type="text" name="mName" id="mName"><br></td>
</tr>
<tr>
<td><label>Surname:</label><br></td>
<td><input type="text" name="sName" id="sName"><br></td>
</tr>
<tr>
<td><label>Username:</label><br></td>
<td><input type="text" name="uName" id="uName"><br></td>
</tr>
<tr>
<td><label>Password:</label><br></td>
<td><input type="password" name="pWord" id="pWord"><br></td>
</tr>
<tr>
<td><label>CV:</label><br><br></td>
<td><input type="file" name="CV" id="CV"><br><br></td>
</tr>
<tr>
<td><label>CONTACTS:</label><br></td>
</tr>
<tr>
<td><label>Email address:</label><br></td>
<td><input type="email" name="email" id="email"><br></td>
</tr>
<tr>
<td><label>Mobile number:</label><br><br></td>
<td><input type="number" name="number" id="number"><br><br></td>
</tr>
<tr >
<td><label>SOCIAL MEDIA ACCOUNTS:</label><br></td>
</tr>
<tr>
<td><label>Facebook:</label><br></td>
<td><input type="text" name="fb" id="fb"><br></td>
</tr>
<tr>
<td><label>Twitter:</label><br></td>
<td><input type="text" name="twt" id="twt"><br></td>
</tr>
<tr>
<td><label>Instagram:</label><br><br></td>
<td><input type="text" name="ing" id="ing"><br><br></td>
</tr>
<tr>
<td><label>SUBMIT:</label><br><br></td>
<td><input type="submit" value="submit" id="submit"><br><br></td>
</tr>
<tr>
<td><label>RESET:</label><br><br></td>
<td><input type="reset" value="reset" id="reset"><br><br></td>
</tr>
</tr>
</table>
</form><br><br>
</center>
<footer>
<div>
<a href="">
<img src="location.png" alt="locationIcon" />
<span>
University of Dar Es Salaam,Tanzania
</span>
</a>
<a href="">
<img src="call.png" alt="callIcon" />
<span>
+255 783 239 834
</span>
</a>
<a href="mailto:pembetwalibu18@gmail.com">
<img src="mail.png" alt="mailIcon" />
<span>
pembetwalibu18@gmail.com
</span>
</a>
</div>
<a><i>2021 All Right Reserved by<br>©TWALIBU PEMBE<i></a>
</footer>
</body>
</html>