-
Notifications
You must be signed in to change notification settings - Fork 0
/
register.php
executable file
·87 lines (78 loc) · 3.03 KB
/
register.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
<?php
// session_start();
if (isset($_SESSION['login_user'])) {
header('location:index.php');
}
include 'head.php';
?>
<!--content-->
<div class=" container">
<div class=" register">
<h1>Register</h1>
<form method="post" >
<div class="col-md-6 register-top-grid">
<h3>Personal information</h3>
<div>
<span>Name</span>
<input type="text" id="name" name="name">
<span class="span_error" id="name_span" style="color: black;display:none">Name Should be Charcters only And Between 10 to 30 Charcters</span>
</div>
<div>
<span>BirthDate</span>
<input type="text" id="birthdate" name="birthdate">
<span class="span_error" id="birth_span" style="color: black;display:none">Birthdate should be valid and in this format "yyyy-mm-dd or yyyy/mm/dd"
</span>
</div>
<div>
<span>Email Address</span>
<input type="text" id="email" name="email" >
<span class="span_error" id="email_span" style="color: black;display:none">Invalid email address</span>
</div>
<div>
<span>User name</span>
<input type="text" id="user_name" name="user_name" >
<span class="span_error" id="uname_span" style="color: black;display:none">Invalid user name</span>
</div>
<div>
<span>Job</span>
<input type="text" id="job" >
<span class="span_error" id="job_span" style="color: black;display:none">Job Should be Charcters only And Between 10 to 20 Charcters</span>
</div>
<div>
<span>Address</span>
<input type="text" id="address" >
</div>
<div>
<span>Credit Limit</span>
<input type="text" id="credit" name="credit" >
<span class="span_error" id="credit_span" style="color: black;display:none">Credit Should be numbers only</span>
</div>
<div>
<span>Interest</span>
<textarea name="interest" id="interest"></textarea>
</div>
<a class="news-letter" href="#">
<label class="checkbox"><input type="checkbox" name="checkbox" checked="" ><i> </i>Sign Up for Newsletter</label>
</a>
</div>
<div class="col-md-6 register-bottom-grid">
<div>
<h3>prsonal information</h3>
<span>Password</span>
<input type="password" id="password" name="password" >
<span class="span_error" id="pass_span" style="color: black;display:none">Week password<br/> password should be at least 8 characters and contains small letters, capital letters and numbers</span>
</div>
<div>
<span>Confirm Password</span>
<input type="password" id="confirm_password" >
<span class="span_error" id="conf_pass_span" style="color: black;display:none">Passwords don't matche</span>
</div>
<input type="submit" value="Register" id="register">
</div>
<div class="clearfix"> </div>
</form>
</div>
</div>
<?php
include 'footer.php';
?>