-
Notifications
You must be signed in to change notification settings - Fork 0
/
signup.php
119 lines (102 loc) · 3.84 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="css/animations.css">
<link rel="stylesheet" href="css/main.css">
<link rel="stylesheet" href="css/signup.css">
<title>SignUp</title>
</head>
<body>
<?php
session_start();
$_SESSION["user"] = "";
$_SESSION["usertype"] = "";
// Set the new timezone
date_default_timezone_set('Asia/Kathmandu');
$date = date('Y-m-d');
$_SESSION["date"] = $date;
if ($_POST) {
$_SESSION["personal"] = array(
'fname' => $_POST['fname'],
'lname' => $_POST['lname'],
'address' => $_POST['address'],
'nic' => $_POST['nic'],
'dob' => $_POST['dob']
);
print_r($_SESSION["personal"]);
header("location: create-account.php");
}
?>
<center>
<div class="container">
<table border="0">
<tr>
<td colspan="2">
<p class="header-text">Let's Get Started</p>
<p class="sub-text">Add Your Personal Details to Continue</p>
</td>
</tr>
<tr>
<form action="" method="POST">
<td class="label-td" colspan="2">
<label for="name" class="form-label">Name: </label>
</td>
</tr>
<tr>
<td class="label-td">
<input type="text" name="fname" class="input-text" placeholder="First Name" required>
</td>
<td class="label-td">
<input type="text" name="lname" class="input-text" placeholder="Last Name" required>
</td>
</tr>
<tr>
<td class="label-td" colspan="2">
<label for="address" class="form-label">Address: </label>
</td>
</tr>
<tr>
<td class="label-td" colspan="2">
<input type="text" name="address" class="input-text" placeholder="Address" required>
</td>
</tr>
<tr>
<td class="label-td" colspan="2">
<label for="dob" class="form-label">Date of Birth: </label>
</td>
</tr>
<tr>
<td class="label-td" colspan="2">
<input type="date" name="dob" class="input-text" required>
</td>
</tr>
<tr>
<td class="label-td" colspan="2">
</td>
</tr>
<tr>
<td>
<input type="reset" value="Reset" class="login-btn btn-primary-soft btn">
</td>
<td>
<input type="submit" value="Next" class="login-btn btn-primary btn">
</td>
</tr>
<tr>
<td colspan="2">
<br>
<label for="" class="sub-text" style="font-weight: 280;">Already have an account? </label>
<a href="login.php" class="hover-link1 non-style-link">Login</a>
<br><br><br>
</td>
</tr>
</form>
</tr>
</table>
</div>
</center>
</body>
</html>