-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtesti1.php
122 lines (118 loc) · 7.33 KB
/
testi1.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
<!DOCTYPE html>
<html>
<head>
<title>Dr Singh's Dental Clinic | Delivering Smiles</title>
<meta name="keywords" content="dentist, good dentist, dentist delhi, cheap good dentist, dentist south delhi">
<meta charset="utf-8" name="Perfect 32 Dental Care" content="dentist delhi">
<link rel="stylesheet" type="text/css" href="style.css" media="all" />
</head>
<script language="JavaScript" src="Jscripts/gen_validatorv31.js" type="text/javascript"></script>
<body>
<div id="header">
<div id="logo" style="position:relative;">
<a href="index.html"><img class="bottom"src="images/newlogo.png" style="position:absolute; bottom:0; "height="100px" width="350px"alt="" /></a>
</div>
<div id="logo1" style="position:relative;">
<a href="index.html"><img src="images/new_logo.jpg" style="position:absolute; bottom:0;" height="100px" width="350px"alt="" /></a>
</div>
<ul>
<li><a href="index.html"><span>home</span></a></li>
<li><a href="services.html"><span>services</span></a></li>
<li class="selected"><a href="testi.html"><span>testimonials</span></a></li>
<li><a href="contact.html"><span>contact us</span></a></li>
</ul>
</div>
<div id="body">
<div class="contact">
<h1>Testimonials</h1>
<p>We would like to hear from you. Please send us your commments, suggestions, complaints through the following form. Selected testimonials shall be displayed on the website </p>
<div>
<h3>Tell us what you think of us :</h3>
<?php
// display form if user has not clicked submit
if (!isset($_POST["submit"])) {
?>
<form method="post" action="<?php echo $_SERVER["PHP_SELF"];?>" name="myemailform">
Email Address : <input type="text" name="from"><br>
Full Name : <input type="text" name="name"><br>
Comments : <textarea rows="10" cols="40" name="message"></textarea><br>
<input type="submit" name="submit" value="Submit Feedback">
<input type="reset" value="Reset">
</form>
<?php
} else { // the user has submitted the form
// Check if the "from" input field is filled out
if (isset($_POST["from"])) {
$from = $_POST["from"]; // sender
$subject = $_POST["subject"];
$message = $_POST["message"];
// message lines should not exceed 70 characters (PHP rule), so wrap it
$message = wordwrap($message, 70);
// send mail
mail("[email protected]",$subject,$message,"From: $from\n");
echo "Thank you for sending us feedback";
}
}
?>
<script language="JavaScript">
// Code for validating the form
// Visit http://www.javascript-coder.com/html-form/javascript-form-validation.phtml
// for details
var frmvalidator = new Validator("myemailform");
frmvalidator.addValidation("name","req","Please provide your name");
frmvalidator.addValidation("from","req","Please provide your email");
frmvalidator.addValidation("email","email","Please enter a valid email address");
</script>
<!-- </form></p -->
<h3>Recent Testimonials</h3>
<ul class="news">
<li>
<fieldset> "Dr. Singh has a big butt and I like it." - Anonymous</fieldset>
</li>
<li>
<fieldset>"The equipment here tastes like stale paan and I love it" - Ram charan</fieldset>
</li>
<li>
<fieldset>"Daktar Sahab bahot badhiya insaan hain"- Asharam</fieldset>
</li>
<li>
<fieldset>"Meri maano aur kisi achche Doctor ko dikha lo, inke chakkar mein mat pado" - Hot_Tina91</fieldset>
</li>
<li>
<fieldset>"Best nimbu pani in town, right behind the clinic, must try." - Jaskaran</fieldset>
</li>
</ul>
</div>
</div>
</div>
<div id="footer">
<div>
<div>
<h3>Netaji Nagar</h3>
<ul>
<li>+91-9711928585 mobile</li>
<li>011-26118002 clinic</li>
</ul>
</div>
<div>
<h3>Kalkaji</h3>
<ul>
<li>+91-9711528585 mobile</li>
</ul>
</div>
<div>
<ul>
<li>Click <a href="Perfect32_Brochure.pdf"><span>here</span></a> to Download our Brochure</li>
</ul>
</div>
<div>
<h3>follow us on facebook:</h3>
<a class="facebook" href="https://www.facebook.com/perfect32dentalcarenetajinagar" target="_blank">facebook</a>
</div>
</div>
<div>
<p>© Copyright 2014. All rights reserved</p>
</div>
</div>
</body>
</html>