-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcontactus.php
91 lines (73 loc) · 2.92 KB
/
contactus.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
<?php include ('header.php')?>
<?php include ('dbcon.php')?>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<!--header section starts-->
<header>
<div class="header-1">
<a href="#" style="" class="logo"><i class="fa-solid fa-basket-shopping"></i></i>Cesta- Contact</a>
<form action="" class="search-box-container">
</form>
</div>
<!--header 2-->
<div class="header-2 " style="width: 1360px;">
<div id="menu-bar" class="fa-sharp fa-solid fa-bars"></div>
<nav class="navbar">
<a href="index.php" style="" class="nav-link active">Home</a>
<a href="#category" style="" class="nav-link active">Category</a>
<a href="#product" style="" class="nav-link active">Product</a>
<a href="contactus.php" style="" class="nav-link active">Contact</a>
<a href="admin.php" style="" class="nav-link active">Admin</a>
</nav>
<div class="icons">
<a href="cart.php" class="fa-sharp fa-solid fa-cart-shopping">
<?php
$countSql = "SELECT COUNT(*) AS total_items FROM cart";
$results = mysqli_query($dbconn, $countSql);
$rows = mysqli_fetch_assoc($results);
$totalItems = $rows['total_items'];
echo '<span style="color: #2c2c54; font-size: 15px; margin-top: 50px; border-radius: 50%;">' . $totalItems . '</span>';
?>
</a>
<?php
session_start();
if (isset($_SESSION['loggedIn'])) {
} else {
echo '<a href="signup.php" class="fa-sharp fa-solid fa-circle-user"></a>';
}
?>
</div>
</div>
</header>
<!--header section ends-->
<!-- contact -->
<section class="contact" id="contact">
<h1 class="heading" style=""> contact Us <span style=""> now </span> </h1>
<div class="row">
<div class="image">
<img src="images/contact.png" alt="">
</div>
<form action="contactus.php" method="POST" >
<div class="inputBox" >
<input type="text" style="" name="firstname" placeholder="first name">
<input type="text" style="" name="lastname" placeholder="last name">
</div>
<div class="inputBox">
<input type="email" style="" name="email" placeholder="email address">
<input type="number" style="" name="phone" placeholder="phone">
</div>
<textarea name="message" style="" placeholder="message" id="" cols="30" rows="10"></textarea>
<input type="submit" style=" width: 200px;" value="Send" name="submit" class="btn">
</form>
</div>
</section>
<script src="js/script.js"></script>
<script src="bootstrap-5.3.0-alpha1-dist/bootstrap.min.js"></script>
</body>
</html>