-
Notifications
You must be signed in to change notification settings - Fork 2
/
login.php
69 lines (67 loc) · 2.21 KB
/
login.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 include "inc/header.php"; ?>
<?php
$login=Session::get('cuslogin');
if($login==true){
header("Location:orderdetails.php");
}
?>
<?php
if($_SERVER['REQUEST_METHOD']=='POST' && isset($_POST['submit'])){
$custoreg=$cmr->custoreg($_POST);
}
?>
<?php
if($_SERVER['REQUEST_METHOD']=='POST' && isset($_POST['login'])){
$custologin=$cmr->custologin($_POST);
}
?>
<section id="form"><!--form-->
<div class="container">
<div class="row">
<div class="col-sm-3 col-sm-offset-1">
<div class="login-form"><!--login form-->
<h2>
<?php if(isset($custologin)){ echo $custologin;}
else{
echo 'Login to your account';
}
?>
</h2>
<form method="POST">
<input type="email" name="email" placeholder="Email Address" />
<input type="password" name="password" placeholder="Password" />
<button type="submit" class="btn btn-default" name="login">Login</button>
</form>
</div><!--/login form-->
</div>
<h2 class="nh2">
<?php if(isset($custoreg)){ echo $custoreg;}
else{
echo 'New User Signup!';
}
?>
</h2>
<div class="col-sm-3">
<div class="signup-form"><!--sign up form-->
<form method="POST">
<input type="text" name="name" placeholder="Name" required />
<input type="text" name="city" placeholder="City/Village" required />
<input type="text" name="thana" placeholder="Thana"/>
<input type="email" name="email" placeholder="Email Address" required />
<input type="password" name="password" placeholder="Password" required />
</div>
</div>
<div class="col-sm-3">
<div class="signup-form">
<input type="text" name="address" placeholder="Home Area/Address" required />
<input type="text" name="zilla" placeholder="Zilla" required />
<input type="text" name="post" placeholder="Post Office" required/>
<input type="text" name="mobile" placeholder="Mobile" required/>
<button type="submit" name="submit" class="btn btn-default">Signup</button>
</form>
</div><!--/sign up form-->
</div>
</div>
</div>
</section><!--/form-->
<?php include "inc/footer.php"; ?>