-
Notifications
You must be signed in to change notification settings - Fork 17
/
contact-us.php
72 lines (67 loc) · 3.14 KB
/
contact-us.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="style/styles.css">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.2/css/all.css" integrity="sha384-fnmOCqbTlWIlj8LyTjo7mOUStjsKC4pOpQbqyi7RrhN7udi9RwhKkMHpvLbHG9Sr" crossorigin="anonymous">
<title>Contact Us</title>
<link rel="icon" type="image/png" href="img/logo.png">
<script src="_.js "></script>
</head>
<body>
<?php
include "connection.php";
?>
<header></header>
<div class="contact-us-container">
<div class="contact-us-section contact-us-section1">
<h1>Contact</h1>
<p>Feel Free to Contact Us </p>
<form action="" method="POST">
<input placeholder="First Name" name="fName" required><br>
<input placeholder="Last Name" name="lName"><br>
<input placeholder="E-mail Address" name="eMail" required><br>
<textarea placeholder="Enter your message !" name="feedback" rows="10" cols="30" required></textarea><br>
<button type="submit" name="submit" value="submit">Send your Message</button>
<?php
if (isset($_POST['submit'])) {
$insert_query = "INSERT INTO
feedbackTable ( senderfName,
senderlName,
sendereMail,
senderfeedback)
VALUES ( '" . $_POST["fName"] . "',
'" . $_POST["lName"] . "',
'" . $_POST["eMail"] . "',
'" . $_POST["feedback"] . "')";
$add = mysqli_query($con, $insert_query);
if ($add) {
echo "<script>alert('Succesfully Submitted');</script>";
}
}
?>
</form>
</div>
<div class="contact-us-section contact-us-section2">
<h1>Address & Info</h1>
<h3>Phone Numbers</h3>
<p><a href="tel:01011391148">+2 010 11 39 11 48</a><br>
<a href="tel:01011391148">+2 010 11 39 11 48</a></p>
<h3>Address</h3>
<p>El Sherouk City , Suez Desert Road , Cairo 11837 - P.O. Box 43</p>
<h3>E-mail</h3>
<p><a href="mailto:[email protected]">[email protected]</a></p>
</div>
</div>
<div style="width: 75%; height: 350px; margin: 15%;">
<div class="gmap_canvas"><iframe id="gmap_canvas" src="https://maps.google.com/maps?q=BUE&t=&z=13&ie=UTF8&iwloc=&output=embed" frameborder="0" scrolling="no" marginheight="0" marginwidth="0"></iframe>
</div>
</div>
<footer></footer>
<script src="scripts/jquery-3.3.1.min.js "></script>
<script src="scripts/owl.carousel.min.js "></script>
<script src="scripts/script.js "></script>
</body>
</html>