-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathadditionalInfo.php
69 lines (68 loc) · 2.7 KB
/
additionalInfo.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
<?php
session_start();
if (!isset($_SESSION['email'])) {
header('Location: userSignIn.php');
exit();
}
?>
<html>
<head>
<title>Additional Information</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" />
</head>
<style>
.box {
width:100%;
max-width:400px;
background-color:#f9f9f9;
border:1px solid #ccc;
border-radius:5px;
padding:16px;
margin:0 auto;
}
</style>
<body>
<div class="container">
<div class="box">
<h3 align="center">Complete Your Profile</h3>
<form method="post" action="saveUserInfo.php">
<div class="form-group">
<label for="firstName">First Name:</label>
<input type="text" name="firstName" id="firstName" class="form-control" value="<?php echo $_SESSION['firstName']; ?>" required readonly/>
</div>
<div class="form-group">
<label for="lastName">Last Name:</label>
<input type="text" name="lastName" id="lastName" class="form-control" value="<?php echo $_SESSION['lastName']; ?>" required readonly/>
</div>
<div class="form-group">
<label for="email">Email:</label>
<input type="email" name="email" id="email" class="form-control" value="<?php echo $_SESSION['email']; ?>" required readonly/>
</div>
<div class="form-group">
<label for="username">Username:</label>
<input type="text" name="username" id="username" class="form-control" required/>
</div>
<div class="form-group">
<label for="gender">Gender:</label>
<select name="gender" id="gender" class="form-control" required>
<option value="1">Male</option>
<option value="2">Female</option>
<option value="3">Other</option>
</select>
</div>
<div class="form-group">
<label for="country">Country:</label>
<input type="text" name="country" id="country" class="form-control" required/>
</div>
<div class="form-group">
<label for="dob">Date of Birth:</label>
<input type="date" name="dob" id="dob" class="form-control" required/>
</div>
<div class="form-group">
<input type="submit" name="submit" value="Save" class="btn btn-success form-control"/>
</div>
</form>
</div>
</div>
</body>
</html>