-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsignup.php
158 lines (144 loc) · 4.74 KB
/
signup.php
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
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href='//fonts.googleapis.com/css?family=Raleway:400,300,600' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="skeleton.css" />
<link rel="stylesheet" href="personal.css" />
<title>College Forum</title>
</head>
<body>
<div class="section hero">
<div class="container">
<div class="value-props row">
<div class="three columns value-prop u-pull-left" id="headerThree">
<img class="value-img" id="icon" src="icon2.png">
</div></div>
<div class="twelve columns value-prop u-pull-right" id="headerEight"><h4>clg-forum</h4></div>
<br>
<br>
<br>
<br>
<script type="text/javascript">
function check(sign_up)
{
if(
sign_up.u_name.value == "" ||
sign_up.f_name.value == "" ||
sign_up.pwd.value == "" ||
sign_up.e_mail.value == ""||
sign_up.gender.value == ""||
)
{
if (sign_up.u_name.value == "")
{
document.getElementById("a").innerHTML = "Please, Enter user name.";
//alert("Please, Enter The Username");
sign_up.u_name.sign_up.focus();
}
else
{
document.getElementById("a").innerHTML = "";
//alert("Please, Enter The Username");
sign_up.u_name.focus();
}
if sign_up.f_name.value == "")
{
document.getElementById("b").innerHTML = "Please, Enter full name.";
//alert ("Please,Please Enter The Fullname");
sign_up.f_name.focus();
}
else
{
document.getElementById("b").innerHTML = "";
//alert ("Please,Please Enter The Fullname");
sign_up.f_name.focus();
}
if sign_up.pwd.value == "")
{
document.getElementById("c").innerHTML = "Please, Enter password.";
//alert ("Please,Please Enter The Password");
sign_up.pwd.focus();
}
else
{
document.getElementById("c").innerHTML = "";
//alert ("Please,Please Enter The Password");
sign_up.pwd.focus();
}
if sign_up.e_mail.value == "")
{
document.getElementById("d").innerHTML = "Please, Enter e-mail address.";
//alert ("Please,Please Enter The E-mail Address");
sign_up.e_mail.focus();
}
else
{
document.getElementById("d").innerHTML = "";
//alert ("Please,Please Enter The E-mail Address");
sign_up.e_mail.focus();
}
if sign_up.gender.value == "")
{
document.getElementById("spuid").innerHTML = "Please, Enter the gender.";
//alert("Please,Please Enter The Gender");
sign_up.gender.focus();
}
else
{
document.getElementById("spuid").innerHTML = "";
//alert("Please,Please Enter The Gender");
sign_up.gender.focus();
}
return false;
}
else
return true;
}
</script>
<h2>Sign Up!</h2> <!--<div class="nine columns value-prop u-pull-right" id="headerNine">-->
<form action="signup_insert.php" method="post" onsubmit="return check(this)" name="sign_up">
<div class="row">
<div class="six columns">
<label for="Email">Your email</label>
<input class="u-full-width" type="email" placeholder="[email protected]" name="e_mail"><span id='d' style="color: red;"></span>
</div>
</div>
<div class="row">
<div class="six columns">
<label for="fname">Full Name</label>
<input class="u-full-width" type="text" name="f_name"><span id='b' style="color: red;"></span>
</div>
</div>
<div class="row">
<div class="six columns">
<label for="uname">Username</label>
<span id='a' style="color: red;"><input class="u-full-width" type="text" name="u_name" ></span>
</div>
<div class="six columns">
<label for="uname">Password</label>
<input class="u-full-width" type="password" name="pwd"><span id='c' style="color: red;"></span>
</div>
</div>
<div class="row">
<div class="three columns">
<label for="image">Profile Picture</label>
<input type="file" name="ima">
</div>
</div>
<div class="row">
<div class="six columns">
<label for="username">Gender</label>
<select class="u-full-width" name="gender">
<option value="1">Male</option>
<option value="2">Female</option>
<option value="3">Other</option><span id='spuid' style="color: red;"></span>
</select>
</div>
</div>
<div class="row">
<div class="three columns">
<input class="button-primary" type="submit" value="Submit">
</div><div class="three columns"> <input type="reset" value="Reset">
</div></div>
</form>