-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsignup.php
113 lines (109 loc) · 5.64 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
<?php
include('path.php');
include(ROOT_PATH . '/app/database/db.php');
include(ROOT_PATH . '/app/controllers/users.php');
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>signup!</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="css/style.css" rel="stylesheet">
</head>
<body>
<?php include(ROOT_PATH . '/app/includes/messages.php');?>
<form method="POST" action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]);?>" enctype="multipart/form-data">
<div class="address">
<div class="label">
<label for="full-name">Full Name:
<input type="text" name="full_name" id="full_name" class="text-input" placeholder="Full Name" value="<?php echo $full_name;?>">
<span class="error">*<?php echo $error_full_name; echo " "; echo $error_full_name2;?></span>
</label>
</div>
<div class="label">
<label for="email">Email:
<input type="email" name="email" id="email" class="text-input" placeholder="Email" value="<?php echo $email;?>">
<span class="error">*<?php echo $error_email; echo " "; echo $error_email2?></span>
</label>
</div>
<div class="label">
<label for="phone">Phone:
<input type="number" name="phone" id="phone" class="text-input" placeholder="Phone Number" value="<?php echo $phone;?>">
<span class="error">*<?php echo $error_phone; echo " "; echo $error_phone2;?></span>
</label>
</div>
<div class="label">
<label for="username">Username:
<input type="text" name="username" id="username" class="text-input" placeholder="Username" value="<?php echo $username;?>">
<span class="error">*<?php echo $error_username;?></span>
</label>
</div>
<div class="label">
<label for="password">Password:
<input type="password" name="password" id="password" class="text-input" placeholder="Password" value="<?php echo $password;?>">
<span class="error">*<?php echo $error_pass; echo " "; echo $error_pass2; echo " "; echo $error_pass3;?></span>
</label>
</div>
<div class="label">
<label for="conpassword">Confirm Password:
<input type="password" name="conpassword" id="conpassword" class="text-input" placeholder="Confirm Password" value="<?php echo $conpassword;?>">
<span class="error">*<?php echo $error_passcon?></span>
</label>
</div>
<div class="label">
<label for="address">Address:
<input type="text" name="address" id="address" class="text-input" placeholder="Address" value="<?php echo $address;?>">
<span class="error">*<?php echo $error_address;?></span>
</label>
</div>
<div class="label">
<label for="address">Address 2<span class="error">(optional)</span>:
<input type="text" name="address2" id="address2" class="text-input" placeholder="Address 2" value="<?php echo $address2;?>">
</label>
</div>
<div class="label">
<label for="country">Country:
<input type="text" name="country" id="country" class="text-input" placeholder="Country" value="<?php echo $country;?>">
<span class="error">*<?php echo $error_con; echo " "; echo $error_con2;?></span>
</label>
</div>
<div class="label">
<label for="age">Age:
<input type="date" name="age" id="age" class="text-input" placeholder="Age" value="<?php echo $age;?>">
</label>
</div>
<div class="label">
<label for="fb-link">Facebook Link:
<input type=text name="fb_link" id="fb_link" class="text-input" placeholder="Facebook Link" value="<?php echo $fb_link;?>">
</label>
</div>
<div class="label">
<label for="image">Image:
<input type="file" name="image" id="image" class="text-input" value="<?php echo $image;?>">
<span class="error">*<?php echo $error_image; echo " "; echo $error_image2;?></span>
</label>
</div>
<div class="label">
<label for="ref">Where did you hear about us:
<input type="text" name="ref" id="ref" class="text-input" placeholder="" value="<?php echo $ref;?>">
</label>
</div>
<div class="label">
<label for="agree">
<input type="checkbox" name="agree" id="agree" class="text-input" placeholder=""> I agree tp <a href="#">blah blah blah</a>
</label>
</div>
<div class="label">
<label for="policy">
<input type="checkbox" name="policy" id="policy" class="text-input" placeholder=""> I agree to <a href="#">blah blah blah</a>
</label>
</div>
</div>
<button type="submit" class="btn-action btn" name="sign-up" id="sign-up">Sign UP</button>
</form>
<div class="login">
<span>Or <a href="./login.html">Login here</a></span>
</div>
</body>
</html>