-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaccount.php
71 lines (60 loc) · 2.17 KB
/
account.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
<?php
session_start();
if( isset( $_SESSION['loggedin'] ) ) {
header("Location: orders.php");
}
?>
<html>
<head>
<link rel="stylesheet" href="main.css">
<title>Sit & Stay - Account</title>
<script>
function validateForm() {
var x = document.forms["contactForm"]
["emailorder"].value;
if (x == "" || x == null) {
alert("Email must be filled out");
return false;
}
}
</script>
</head>
<body>
<header id="header12">
<div class="container">
<div id="branding">
<h1>Sit & Stay</h1>
</div>
<nav>
<ul>
<a href="index.html"><li>Home</li></a>
<a href="cart.html"><li>Cart - <span class="cartcount">0</span></li></a>
<a href="about.html"><li>Why us?</li></a>
<a href="contactus.html"><li>Contact Us</li></a>
<a href="account.php"><li class="current">Account</li></a>
</ul>
</nav>
</div>
</header>
<br><br><br>
<div id="contactUsHead">
<p style="font-size: 30px;">All your orders in one place!</p>
<p style="font-size: 25px;">Sign in to view all your previous orders.</p>
</div><br><br>
<form action="orders.php" method="post" id="contactForm"
required>
<label for="emailorder" style="margin-left: 41%; margin-right: auto;"> Email:</label><br> <br>
<input type="email" name="emailorder" class="inp" style="height: 40px; width: 340px;display: block;
margin-left: 32%; "><br><br><br><br>
<input type="submit" value="Submit" class="button_1" style="margin-left: 40%;">
</form>
<footer id="footer12">
Project
<a href="#">
<div id="backTop">
<img src="Images/back-to-top.png" alt="Top" height="18px" width="18px">
</div></a>
</footer>
<script src="cartjs.js"></script>
</body>
</html>