-
Notifications
You must be signed in to change notification settings - Fork 0
/
contact.php
142 lines (118 loc) · 5.35 KB
/
contact.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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
<?php
include 'connect.php';
if(isset($_POST['submit'])){
$name=$_POST['name'];
$email=$_POST['email'];
$subject=$_POST['subject'];
$contactno=$_POST['contactno'];
$message=$_POST['message'];
$sql="insert into `complaints` (name,email,subject,contactno,message)
values ('$name','$email','$subject','$contactno','$message')";
$result=mysqli_query($con,$sql);
if($result)
{
echo "<script>alert('Data inserted sucessfully')</script>";
//header('location:display.php');
} else {
die(mysqli_error($con));
}
}
?>
<!DOCTYPE html>
<html>
<head>
<title> Healthdoc</title>
<link rel="stylesheet" href="contact.css">
<script src="https://kit.fontawesome.com/4cbcac6849.js" crossorigin="anonymous"></script>
</head>
<script>
function validateForm() {
let x = document.forms["myForm"]["name"].value;
if (x == "") {
alert("Name must be filled out");
return false;
}
}
</script>
<body>
<header>
<a href="#" class="logo"><img src="LOGO.png" height="60px" width="150px"></a>
<nav class="nav">
<a href="home.php">Home</a>
<a href="#">Products</a>
<a href="aboutus.php">About</a>
<a href="#">Contact</a>
<a href="#"><img src="Circle-icons-profile.svg.png" height="30px" width="30px"></a>
</nav>
</header>
<table border=0>
<tr>
<td>
<div class="card">
<div class="container">
<h1>Contact Us</h1>
<p>Let's get this conversation started.Tell us a bit about yourself, and we'll get in touch
as
soon as we can.</p>
<hr>
<form name="myForm" method="post" onsubmit="return validateForm()">
<label for="name"><b>Name</b></label><br>
<input type="text" placeholder="Enter name" name="name"><br />
<label for="email"><b>E-mail</b></label><br>
<input type="email" placeholder="Enter email" name="email" required><br />
<label for="subject"><b>Subject</b></label><br>
<input type="text" placeholder="Enter subject" name="subject" required><br />
<label for="contactno"><b>Contact No</b></label><br>
<input type="text" placeholder="Enter contact No" name="contactno" required><br />
<label for="message"><b>Message</b></label><br>
<textarea type="text" placeholder="Enter message" name="message" required></textarea><br>
<div class="btna">
<button type="reset" class="btnr" name="reset"><b>Reset</b></button>
<button type="submit" class="btns" name="submit"><b>Submit</b></button>
</div>
</form>
</div>
</div>
</td>
<td style="width:40%;">
<h1>Location</h1>
<iframe
src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d126747.58238609268!2d79.77657794952391!3d6.907106380976086!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x3ae25755ca7a1c0d%3A0xbb89aa89159b6cc!2sMedico%20Pharmacy!5e0!3m2!1sen!2slk!4v1685546351531!5m2!1sen!2slk"
width="600" height="450" style="border:2px solid black; border-radius:20px" allowfullscreen=""
loading="lazy" referrerpolicy="no-referrer-when-downgrade"></iframe>
</td>
</tr>
</table>
<hr style="border:1px solid black; align:center; width:80%" />
<table border=0>
<tr>
<th>Medigood Pharmacy</th>
<th class="middle">Contact Info</th>
<th colspan="4" class="middle" style="width:25%;">Social Media</th>
</tr>
<tr>
<td rowspan="4" class="info" style="width:30%;">Contrary to popular belief, Lorem Ipsum is not simply
random
text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years
old.
Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the
more
obscure Latin words.</td>
<td class="middle"><i class="fa-solid fa-phone fa-sm" style="color: #121212;"></i> Tel : +9411243156
</td>
</tr>
<tr>
<td class="middle"><i class="fa-solid fa-location-dot fa-sm" style="color: #d42525;"></i> CNo.
12/3, Galle Road,Colombo 7.
</td>
<td><i class="fa-brands fa-facebook fa-2xl" style="color: #005eff;"></i></td>
<td><i class="fa-brands fa-twitter fa-2xl" style="color: #00acee;"></i></td>
<td><i class="fa-brands fa-instagram fa-2xl" style="color: #8134b4;"></i></td>
<td><i class="fa-brands fa-youtube fa-2xl" style="color: #c4302b;"></i></td>
</tr>
<tr>
<td class="middle"><i class="fa-solid fa-envelope fa-sm"></i> medigoodpharmacy5.2@gmail.com</td>
</tr>
</table>
</body>
</html>