-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
121 lines (105 loc) · 4.09 KB
/
index.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
<?php
session_start();
$link = mysqli_connect("localhost","root","","ecom");
?>
<!-- REMEMBER THIS INDEX. HTML IS NOW OUR ACCOUNT PAGE!-->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>E-commerce</title>
<link rel="stylesheet" href="account.css" />
<link
rel="stylesheet"
href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"
/>
</head>
<body>
<div class="header">
<div class="container">
<div class="navbar">
<div class="logo">
<img src="./images/Free_Sample_By_Wix.jfif" width="125px" height="90px" />
</div>
</div>
<h5 style="padding-left: 50px;color:white">WELCOME USER PLEASE LOGIN TO CONTINUE SHOPPING,IF NEW PLEASE REGISTER FIRST.</h5>
<!--Account page-->
<div class="account-page">
<div class="row">
<div class="col-4">
<div class="form-container">
<div class="form-btn">
<span onclick="login()">Login</span>
<span onclick="register()">Register</span>
<hr id="Indicator">
</div>
<form id="LoginForm" action="login.php" method="post" >
<input type="text" placeholder="Username" name="CUSTOMER_NAME" required>
<input type="text" placeholder="E-Mail" name="CUSTOMER_EMAIL" required>
<input type="password" placeholder="password" name="PASSWORD" required>
<button type="submit" class="btn" name="Login">Login</button>
</form>
<form id="RegistrationForm" action="insert.php" method="post" enctype="multipart/form-data">
<table>
<tr>
<td><input type="text" placeholder="Username" name="CUSTOMER_NAME" required></td>
</tr>
<tr>
<td> <input type="email" placeholder="Email" name="CUSTOMER_EMAIL" required><td>
</tr>
<tr>
<td><input type="password" placeholder="Password" name="PASSWORD" required></td>
</tr>
<tr>
<td> <textarea cols="20" rows="10" placeholder="Address"name="HOME_ADDRESS" required style="height: 100px;"></textarea></td>
</tr>
<tr>
<td> <input type="text" placeholder="PIN CODE" name="POST_CODE" required>
</td></tr>
<tr>
<td> <input type="text" placeholder="Phone Number" name="PHONE" required></td>
</tr>
<tr>
<td> <button type="submit" class="btn" name="Register">Register</button></td>
</tr>
</table>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
<!--Footer-->
<div class="footer">
<div class="row">
<div class="footer-col2">
<img src="./images/Free_Sample_By_Wix.jfif" width="30px" />
<p>
The Best only!!!!
</p>
</div>
</div>
</div>
</div>
<!--JS for Toggle form-->
<script>
var LoginForm=document.getElementById("LoginForm");
var RegistrationForm=document.getElementById("RegistrationForm");
var Indicator=document.getElementById("Indicator");
function register()
{
RegistrationForm.style.transform="translateX(0px)";
LoginForm.style.transform="translateX(0px)";
Indicator.style.transform="translateX(100px)";
}
function login()
{
RegistrationForm.style.transform="translateX(300px)";
LoginForm.style.transform="translateX(300px)";
Indicator.style.transform="translateX(0px)";
}
</script>
</body>
</html>