-
Notifications
You must be signed in to change notification settings - Fork 0
/
entryConformationCustomer.php
60 lines (53 loc) · 1.67 KB
/
entryConformationCustomer.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
<! DOCTYPE html>
<?php
require_once('sportsfanConnect.php');?>
<html lang="en">
<link rel="stylesheet" type="text/css" href="style.css" media="screen">
<wrapper>
<body>
<head>
<menu>
<img src="thesportsfanicon.jpg" alt="The SportsFan" width="1000" height="180">
</menu>
<meta charset="utf-8">
<meta name="The SportsFan Management System" content="TheSportsFan.com">
<title>The SportsFan</title>
</head>
<nav>
<li><a href="SportsFanMainPage.php">Home</a></li>
<li><a href="employees.php">Sales People Records</a></li>
<li><a href="suppliers.php">Supplier Records</a></li>
<li><a href="inventory.php">Inventory Records</a></li>
<li><a href="sales.php">Sales Records</a></li>
<li><a href="customers.php">Customer Records</a></li>
</nav>
c
<?php
if (!empty($_POST["cc"] && $_POST["name"] && $_POST["address"] && $_POST["credit"]))
{
$sql = "INSERT INTO Customers (CreditCardNumber, Name, Address, CreditLimit)
VALUES (
\"{$_POST["cc"]}\",
\"{$_POST["name"]}\",
\"{$_POST["address"]}\",
\"{$_POST["credit"]}\"
)";
$result = $conn->query($sql);
}else{
echo "Please try again later."; }
?>
<br>
<main> <br> <br><br><br>
<body>
<h2> Your record has been successfully added to the database. </h3>
</body>
</main>
</form>
<br>
<footer>
Copyright © TheSportsFan.com
</footer>
<i> Need Help? Find us on<a href="url here">ScootsSoltuions.com </a> </i>
</wrapper>
</body>
</html>