-
Notifications
You must be signed in to change notification settings - Fork 0
/
customer_registration.php
168 lines (137 loc) · 4.4 KB
/
customer_registration.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
<?php
if (isset($_GET["register"])) {
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>BB's and Things</title>
<link rel="stylesheet" href="css/bootstrap.min.css"/>
<script src="js/jquery2.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="main.js"></script>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<div class="wait overlay">
<div class="loader"></div>
</div>
<div class="navbar navbar-inverse navbar-fixed-top">
<div class="container-fluid">
<div class="navbar-header">
<a href="#" class="navbar-brand">Khan Store</a>
</div>
<ul class="nav navbar-nav">
<li><a href="index.php"><span class="glyphicon glyphicon-home"></span>Home</a></li>
<li><a href="index.php"><span class="glyphicon glyphicon-modal-window"></span>Product</a></li>
</ul>
</div>
</div>
<p><br/></p>
<p><br/></p>
<p><br/></p>
<div class="container-fluid">
<div class="row">
<div class="col-md-2"></div>
<div class="col-md-8" id="signup_msg">
<!--Alert from signup form-->
</div>
<div class="col-md-2"></div>
</div>
<div class="row">
<div class="col-md-2"></div>
<div class="col-md-8">
<div class="panel panel-primary">
<div class="panel-heading">Customer SignUp Form</div>
<div class="panel-body">
<form id="signup_form" onsubmit="return false">
<div class="row">
<div class="col-md-6">
<label for="f_name">First Name</label>
<input type="text" id="f_name" name="f_name" class="form-control">
</div>
<div class="col-md-6">
<label for="f_name">Last Name</label>
<input type="text" id="l_name" name="l_name"class="form-control">
</div>
</div>
<div class="row">
<div class="col-md-12">
<label for="email">Email</label>
<input type="text" id="email" name="email"class="form-control">
</div>
</div>
<div class="row">
<div class="col-md-12">
<label for="password">password</label>
<input type="password" id="password" name="password"class="form-control">
</div>
</div>
<div class="row">
<div class="col-md-12">
<label for="repassword">Re-enter Password</label>
<input type="password" id="repassword" name="repassword"class="form-control">
</div>
</div>
<div class="row">
<div class="col-md-12">
<label for="mobile">Mobile</label>
<input type="text" id="mobile" name="mobile"class="form-control">
</div>
</div>
<div class="row">
<div class="col-md-12">
<label for="address1">Address Line 1</label>
<input type="text" id="address1" name="address1"class="form-control">
</div>
</div>
<div class="row">
<div class="col-md-12">
<label for="city">City</label>
<input type="text" id="city" name="city"class="form-control">
</div>
</div>
<div class="row">
<div class="col-md-12">
<label for="state">State</label>
<select id="state" name="state">
<?php
$states = [ "AL", "AK", "AS", "AZ", "AR", "CA", "CO", "CT", "DE", "DC", "FM", "FL", "GA", "GU", "HI", "ID", "IL", "IN", "IA", "KS", "KY", "LA", "ME", "MH", "MD", "MA", "MI", "MN", "MS", "MO", "MT", "NE", "NV", "NH", "NJ", "NM", "NY", "NC", "ND", "MP", "OH", "OK", "OR", "PW", "PA", "PR", "RI", "SC", "SD", "TN", "TX", "UT", "VT", "VI", "VA", "WA", "WV", "WI", "WY" ];
foreach ($states as $state) {
echo '<option value="'.$state.'">'.$state.'</option>';
}
?>
</select>
</div>
</div>
<div class="row">
<div class="col-md-12">
<label for="country">Country</label>
<input type="text" id="country" name="country" class="form-control">
</div>
</div>
<div class="row">
<div class="col-md-6">
<label for="zip">Zip Code</label>
<input type="text" id="zip" name="zip"class="form-control">
</div>
</div>
<p><br/></p>
<div class="row">
<div class="col-md-12">
<input style="width:100%;" value="Sign Up" type="submit" name="signup_button"class="btn btn-success btn-lg">
</div>
</div>
</div>
</form>
<div class="panel-footer"></div>
</div>
</div>
<div class="col-md-2"></div>
</div>
</div>
</body>
</html>
<?php
}
?>