-
Notifications
You must be signed in to change notification settings - Fork 4
/
basic_reg.php
147 lines (126 loc) · 5.87 KB
/
basic_reg.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
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="../Job_Application/bootstrap/dist/css/bootstrap.min.css"/>
<link href="../Job_Application/css/main.css" rel="stylesheet"/>
<link href="../Job_Application/css/jobseeker.css" rel="stylesheet"/>
<title>User Registration</title>
<script type="text/javascript" src="../Job_Application/js/validate.js"></script>
<script src="../Job_Application/js/jquery-1.12.0.min.js"></script>
<script src="../Job_Application/js/bootstrap.min.js"></script>
</head>
<body>
<nav class="navbar" id="insidenav">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="../Job_Application/index.php">Job Application</a>
</div>
<ul class="nav navbar-nav">
<li class="active"><a href="#">User Registration</a></li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li><a href="../Job_Application/login.php"><span class="glyphicon glyphicon-log-in"></span> Login</a></li>
</ul>
</div>
</nav>
<div class="container">
<div class="jumbotron">
<h1>Register With Us Now!!</h1>
<p>
Register Today and get your amazing companies offers.<br/>
Apply to jobs in just one click. Apply to thousands of jobs posted daily.<br/>
Employers get appropiate candidate For their work.
</p>
</div>
<FORM id="reguser" onsubmit="return checkForm()" METHOD="post" ACTION="process_basic.php"enctype="multipart/form-data" class="form-horizontal">
<h3 class="h3style"> Your Login Detials </h3>
<div class="form-group">
<label class="control-label col-sm-2" for="name_user" >Enter your Username:</label>
<div class="col-sm-4">
<input type="text" name="name_user" placeholder="Name/Username" class="form-control" id="name_user"
required onblur="validate('username','nameerror',this.value)">
</div>
<label id="nameerror" class="error" ></label>
</div>
<div class="form-group">
<label for="sex" class="control-label col-sm-2"> Sex:</label>
<div class="col-sm-4">
<select name="sex" class="form-control" id="sex" required>
<option value="m" selected>Male </option>
<option value="f">Female</option>
<option value="o">Other </option>
</select>
</div>
</div>
<div class="form-group">
<label for="acc_type" class="control-label col-sm-2"> Type Of Account:</label>
<div class="col-sm-4">
<select name="acc_type" class="form-control" id="acc_type" required>
<option value="" > Choose from Drop Down </option>
<option value="j">Job Seeker </option>
<option value="e">Employer</option>
</select>
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="email" >Enter your Email ID:</label>
<div class="col-sm-4">
<input type="email" name="useremail" placeholder="Your E-mail" class="form-control" id="email"
required onblur="validate('email','emailerror',this.value)">
</div>
<label id="emailerror" class="error" ></label>
</div>
<div class="form-group">
<label class="control-label col-sm-2 " for="passnew" > Create new Password:</label>
<div class="col-sm-4"> <input type="password" id="passnew" placeholder="New Password" name="pass1" class="form-control"
required onblur="validate('password','passerror',this.value)">
</div>
<label id="passerror" class="error"></label>
</div>
<div class="form-group">
<label class="control-label col-sm-2 for="passconf">Confirm the Password:</label>
<div class="col-sm-4">
<input type="password" id="passconf" placeholder="Confirm Password" name="pass2" class="form-control" required>
</div>
<label class="error" id="passerror2"></label>
</div>
<div class="page-header"> </div>
<div class="form-group form-inline col-sm-10">
<button class="btn btn-success" type="submit" id="reg" value="submit">Register</button>
<label class="col-sm-2"></label>
<button class="btn btn-danger" type="reset" id="reset"> Reset </button>
</div>
</div>
</form>
</body>
<script type="text/javascript">
function checkForm() {
// Fetching values from all input fields and storing them in variables.
var name = document.getElementById("nameerror").innerHTML;
var email = document.getElementById("emailerror").innerHTML;
var pass1 = document.getElementById("passerror").innerHTML;
var pass2 = document.getElementById("passerror2").innerHTML;
//Check input Fields Should not be blanks.
var p1=document.getElementById("passnew").value;
var p2=document.getElementById("passconf").value;
if (p1 != p2) {
document.getElementById("passerror2").innerHTML="Password Donot Match" ;
}
else
{
document.getElementById("passerror2").innerHTML="" ;
}
if( name == "" && email == '' && pass1 == '' && pass2 == '' ) {
//document.getElementById("basic_reg").submit();
return true;
}
else {
alert("Fill all with correct information");
return false;
}
}
</script>
</html>