-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathorderItems.php
74 lines (63 loc) · 2.05 KB
/
orderItems.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
<?php
error_reporting(1);
session_start();
require 'boostrap.php';
$imgName = $_GET['img'];
$_SESSION['imgName'] = $imgName ;
if(isset($_POST['login']))
{
$email = $_POST['email'];
$pass = md5($_POST['pass']);
$sql = mysql_query("SELECT * FROM register WHERE email='$email' AND password='$pass'");
$val = mysql_fetch_array($sql);
if($val)
{
header('location:order.view.php');
}
else
{
echo "<script>alert('Invalid Password or Email')</script>";
echo "<script>location='orderItems.php?img=$imgName'</script>";
}
}
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>BrandLook</title>
<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<link rel="stylesheet" type="text/css" href="admin/css/style.css">
</head>
<body>
<div class="container">
<div class="row">
<div class="col-md">
<div class="wrapper fadeInDown">
<div id="formContent">
<!-- Tabs Titles -->
<!-- Icon -->
<!-- <div class="fadeIn first">
<img src="http://danielzawadzki.com/codepen/01/icon.svg" id="icon" alt="User Icon" />
</div> -->
<!-- Login Form -->
<form method="post">
<h2>Welcome Customer</h2>
<input type="email" id="login" class="fadeIn second" name="email" autofocus required="" placeholder="Email">
<input type="password" id="password" class="fadeIn third" name="pass" required="" placeholder="password">
<input type="submit" class="fadeIn fourth" value="Confirm" name="login">
</form>
<!-- Remind Passowrd -->
<div id="formFooter">
<a class="underlineHover" href="register.php">If You have No Account.Register Here</a>
</div>
</div>
</div>
</div>
</div><!--login-->
</div>
</body>
</html>