-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinsert23.php
71 lines (55 loc) · 1.38 KB
/
insert23.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
// Include config file
require_once "connection.php";
echo "entered";
$_cardname=$_POST['cardname'];
$_cardnumber=$_POST['cardnumber'];
$_exp=$_POST['date'];
$_cvv=$_POST['cvv'];
$sql = "INSERT INTO `payment` ()
VALUES ('$_cardname','$_cardnumber','$_exp','$_cvv')";
if ($conn->query($sql) === TRUE)
{
echo "payment done successfully";
}
else
{
echo "Error: " . $sql . "<br>" . $conn->error;
}
?>
<html>
<head>
<meta charset="UTF-8">
<title align="center">Login</title>
<style>
div {
background-color: #fff;
background-color: rgba(255,255,255,0.5);
margin-top: 50px;
margin-bottom: 50px;
margin-right: 50px;
margin-left: 50px;
}
body{
background-image: url("/wel.jpg");
}
</style>
</head>
<body align="center">
<form action = "/category.php" method="post">
<div>
<h1>PAYMENT DONE SUCCESSFULLY</h1>
<div>
<div>
<h1>THANKS FOR SHOPPING</h1>
<div>
<input type = "submit" value="SHOP AGAIN?">
</div>
</form>
<form action = "/register1.php" method="post">
<div>
<input type = "submit" value="log out">
</div>
</form>
</body>
</html>