-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontact.php
More file actions
266 lines (245 loc) · 9.3 KB
/
contact.php
File metadata and controls
266 lines (245 loc) · 9.3 KB
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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
<?php
// Free html5 templates : www.zerotheme.com
$text = "<span style='color:red; font-size: 35px; line-height: 40px; magin: 10px;'>Error! Please try again.</span>";
if(isset($_POST['submitcontact']))
{
$name=$_POST['name'];
$email=$_POST['email'];
$message=$_POST['message'];
$subject=$_POST['subject'];
$to = "youremail@gmail.com";
$subject = "Zerotheme - Testing Contact Form";
$message = " Name: " . $name ."\r\n Email: " . $email . "\r\n Message:\r\n" . $message;
$from = "Zerotheme.com";
$headers = "From:" . $from . "\r\n";
$headers .= "Content-type: text/plain; charset=UTF-8" . "\r\n";
if(@mail($to,$subject,$message,$headers))
{
$text = "<span style='color:blue; font-size: 35px; line-height: 40px; margin: 10px;'>Your Message was sent successfully !</span>";
}
}
?>
<!DOCTYPE html>
<!--[if lt IE 7 ]><html class="ie ie6" lang="en"> <![endif]-->
<!--[if IE 7 ]><html class="ie ie7" lang="en"> <![endif]-->
<!--[if IE 8 ]><html class="ie ie8" lang="en"> <![endif]-->
<!--[if (gte IE 9)|!(IE)]><!--><html lang="en"> <!--<![endif]-->
<head>
<!-- Basic Page Needs
================================================== -->
<meta charset="utf-8">
<title>zHarvest - Free Html5 Templates</title>
<meta name="description" content="Free Responsive Html5 Css3 Templates | zerotheme.com">
<meta name="author" content="www.zerotheme.com">
<!-- Mobile Specific Metas
================================================== -->
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<!-- CSS
================================================== -->
<link rel="stylesheet" href="css/style1.css">
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="css/menu.css">
<!-- Custom Fonts -->
<link href="font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
<!--<script src="js/jquery-2.1.1.js"></script>
<script src="js/script.js"></script>-->
<!--[if lt IE 8]>
<div style=' clear: both; text-align:center; position: relative;'>
<a href="http://windows.microsoft.com/en-US/internet-explorer/products/ie/home?ocid=ie6_countdown_bannercode">
<img src="http://storage.ie6countdown.com/assets/100/images/banners/warning_bar_0000_us.jpg" border="0" height="42" width="820" alt="You are using an outdated browser. For a faster, safer browsing experience, upgrade for free today." />
</a>
</div>
<![endif]-->
<!--[if lt IE 9]>
<script src="js/html5.js"></script>
<script src="js/css3-mediaqueries.js"></script>
<![endif]-->
</head>
<body class="archive-page">
<div class="wrap-body">
<header>
<div class="wrap-header" >
<!--Top-->
<div id="top">
<div class="">
<div class="row">
<div class="col-1-3">
<span>Welcome To My Site</span>
</div>
<div class="col-2-3">
<ul class="list-inline top-link link">
<li><a href="https://www.facebook.com/ZerothemeDotCom/">Facebook</a></li>
<li><a href="#">Instagram</a></li>
<li><a href="#">Twitter</a></li>
<li><a href="#">Google +</a></li>
<li><a href="#">Pinterest</a></li>
</ul>
</div>
</div>
</div>
</div>
<!---Main Header--->
<div class="main-header">
<div class="style1">
<div class="row">
<div class="hero-heading">
<sup>AGRICULTURE COMPANY</sup>
<span>zHarvest</span>
<div class="tl"></div>
<div class="tr"></div>
<div class="br"></div>
<div class="bl"></div>
</div>
</div>
</div>
</div>
<!---Top Menu--->
<div id="cssmenu" >
<ul>
<li class="active"><a href="index.html"><span>zHarvest</span></a></li>
<li class="has-sub"><a href="#"><span>Category</span></a>
<ul>
<li class="has-sub"><a href="#"><span>Item 1</span></a>
<ul>
<li><a href="#"><span>Sub Item</span></a></li>
<li class="last"><a href="#"><span>Sub Item</span></a></li>
</ul>
</li>
<li class="has-sub"><a href="#"><span>Item 2</span></a>
<ul>
<li><a href="#"><span>Sub Item</span></a></li>
<li class="last"><a href="#"><span>Sub Item</span></a></li>
</ul>
</li>
</ul>
</li>
<li><a href="archive.html"><span>Archive</span></a></li>
<li><a href="single.html"><span>About</span></a></li>
<li class="last"><a href="contact.html"><span>Contact</span></a></li>
</ul>
</div>
</div>
</header>
<!--////////////////////////////////////Container-->
<section id="container">
<div class="wrap-container style1">
<div class="crumbs">
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="contact.html">Contact</a></li>
</ul>
</div>
<div id="main-content">
<div class="wrap-content" style="border-right: none">
<div class="row">
<h1 class="t-center" style="margin: 40px 0;color: #212121;letter-spacing: 2px;font-weight: 500;">Contact Us</h1>
<div class="col-full">
<div id="map" style="height: 450px;"></div>
</div>
<div class="col-1-3">
<div class="wrap-col">
<h3 style="margin: 20px 0">Contact Info</h3>
<strong>SED UT PERSPICIATIS UNDE OMNIS ISTE NATUS ERROR SIT VOLUPTATEM ACCUSANTIUM DOLOREMQUE LAUDANTIUM, TOTAM REM APERIAM.</strong>
<p>Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque la udantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia.</p>
<p>JL.Kemacetan timur no.23. block.Q3<br>
Jakarta-Indonesia</p>
<p>+6221 888 888 90 <br>
+6221 888 88891</p>
<p>info@yourdomain.com</p>
</div>
</div>
<div class="col-2-3">
<div class="wrap-col">
<div class="contact">
<h3 style="margin: 20px 0 20px 30px">Contact Form</h3>
<div id="contact_form">
<!--Warning-->
<center><?php echo $text;?></center>
<!---->
<form name="form1" id="ff" method="post" action="contact.php">
<label class="row">
<div class="col-1-2">
<div class="wrap-col">
<input type="text" name="name" id="name" placeholder="Enter name" required="required" />
</div>
</div>
<div class="col-1-2">
<div class="wrap-col">
<input type="email" name="email" id="email" placeholder="Enter email" required="required" />
</div>
</div>
</label>
<label class="row">
<div class="col-full">
<div class="wrap-col">
<input type="text" name="subject" id="subject" placeholder="Subject" required="required" />
</div>
</div>
</label>
<label class="row">
<div class="wrap-col">
<textarea name="message" id="message" class="form-control" rows="4" cols="25" required="required"
placeholder="Message"></textarea>
</div>
</label>
<center><input class="button button-skin" type="submit" name="submitcontact" value="Submit"></center>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<!--////////////////////////////////////Footer-->
<footer>
<div class="style1 wrap-footer">
<div class="row">
<div class="col-2-4 col-footer-1">
<div class="wrap-col">
<h3 class="widget-title">About</h3>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
<p>Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
<ul class="quicklinks">
<li><a href="#">Privacy Policy</a></li>
<li><a href="#">Terms of Use</a></li>
</ul>
</div>
</div>
<div class="col-1-4 col-footer-2">
<div class="wrap-col">
<h3 class="widget-title">Contact Us</h3>
<p>Call us:</p>
<strong style="font-size: 25px;">0123-456-789</strong>
<p>Address:</p>
<strong>123, New Lenox Chicago, IL 60606</strong>
<p>Email:</p>
<strong>info@yoursite.com</strong>
</div>
</div>
<div class="col-1-4 col-footer-3">
<div class="wrap-col">
<h3 class="widget-title">Socials</h3>
<ul class="social-buttons">
<li><a href="#"><i class="fa fa-twitter"></i></a></li>
<li><a href="#"><i class="fa fa-facebook"></i></a></li>
<li><a href="#"><i class="fa fa-linkedin"></i></a></li>
<li><a href="#"><i class="fa fa-pinterest"></i></a></li>
</ul>
</div>
</div>
</div>
<div class="bottom-footer">
<div class="copyright">
</div>
</div>
</div>
</footer>
</div>
<!-- Google Map -->
<script src="js/google-map.js"></script>
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyB7V-mAjEzzmP6PCQda8To0ZW_o3UOCVCE&callback=initMap" async defer></script>
</body>
</html>