-
Notifications
You must be signed in to change notification settings - Fork 0
/
login_form.php
80 lines (52 loc) · 3.24 KB
/
login_form.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
<?php
#this is Login form page , if user is already logged in then we will not allow user to access this page by executing isset($_SESSION["uid"])
#if below statment return true then we will send user to their profile.php page
//in action.php page if user click on "ready to checkout" button that time we will pass data in a form from action.php page
if (isset($_POST["login_user_with_product"])) {
//this is product list array
$product_list = $_POST["product_id"];
//here we are converting array into json format because array cannot be store in cookie
$json_e = json_encode($product_list);
//here we are creating cookie and name of cookie is product_list
setcookie("product_list",$json_e,strtotime("+1 day"),"/","","",TRUE);
}
?>
<div class="wait overlay">
<div class="loader"></div>
</div>
<div class="container-fluid">
<!-- row -->
<div class="login-marg">
<!-- Billing Details -->
<!-- /Billing Details -->
<form onsubmit="return false" id="login" class="login100-form ">
<div class="billing-details jumbotron">
<div class="section-title">
<h2 class="login100-form-title p-b-49" >Login Here</h2>
</div>
<div class="form-group">
<label for="email">Email</label>
<input class="input input-borders" type="email" name="email" placeholder="Email" id="password" required>
</div>
<div class="form-group">
<label for="email">Password</label>
<input class="input input-borders" type="password" name="password" placeholder="password" id="password" required>
</div>
<div class="text-pad" >
<a href="#">
forget password ?
</a>
</div>
<input class="primary-btn btn-block" type="submit" Value="Login">
<div class="panel-footer"><div class="alert alert-danger"><h4 id="e_msg"></h4></div></div>
</div>
</form>
<!-- Shiping Details -->
<!-- /Shiping Details -->
<!-- Order notes -->
<!-- /Order notes -->
</div>
<!-- Order Details -->
<!-- /Order Details -->
<!-- /row -->
</div>