<?php
//Retrieve form data.
//GET - user submitted data using AJAX
//POST - in case user does not support javascript, we'll use POST instead
$name = ($_GET['name']) ? $_GET['name'] : $_POST['name'];
$email = ($_GET['email']) ?$_GET['email'] : $_POST['email'];
$comment = ($_GET['comment']) ?$_GET['comment'] : $_POST['comment'];
//flag to indicate which method it uses. If POST set it to 1
if ($_POST) $post=1;
//Simple server side validation for POST data, of course, you should validate the email
if (!$name) $errors[count($errors)] = 'Please enter your name.';
if (!$email) $errors[count($errors)] = 'Please enter your email.';
if (!$comment) $errors[count($errors)] = 'Please enter your message.';
//if the errors array is empty, send the mail
if (!$errors) {
//recipient - replace your email here
$to = 'emailaddress@gmail.com';
//sender - from the form
$from = $name . ' <' . $email . '>';
//subject and the html message
$subject = 'Message from ' . $name;
$message = 'Name: ' . $name . '<br/><br/>
Email: ' . $email . '<br/><br/>
Message: ' . nl2br($comment) . '<br/>';
//send the mail
$result = sendmail($to, $subject, $message, $from);
//if POST was used, display the message straight away
if ($_POST) {
if ($result) echo 'Thank you! We have received your message.';
else echo 'Sorry, unexpected error. Please try again later';
//else if GET was used, return the boolean value so that
//ajax script can react accordingly
//1 means success, 0 means failed
} else {
echo $result;
}
//if the errors array has values
} else {
//display the errors message
for ($i=0; $i<count($errors); $i++) echo $errors[$i] . '<br/>';
echo '<a href="index.html">Back</a>';
exit;
}
//Simple mail function with HTML header
function sendmail($to, $subject, $message, $from) {
$headers = "MIME-Version: 1.0" . "\r\n";
$headers .= "Content-type:text/html;charset=iso-8859-1" . "\r\n";
$headers .= 'From: ' . $from . "\r\n";
$result = mail($to,$subject,$message,$headers);
if ($result) return 1;
else return 0;
}
?>
没有合适的资源?快使用搜索试试~ 我知道了~
心杯咖啡餐厅响应式网页模板-适配移动端-HTML源码.zip
共103个文件
png:33个
jpg:26个
js:13个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 149 浏览量
2024-03-27
09:02:10
上传
评论
收藏 2.79MB ZIP 举报
温馨提示
这份HTML网站源码具备出色的移动端适配能力,能够确保你的网站在各种尺寸的移动设备上都能完美呈现。无论是iOS还是Android系统,无论是竖屏还是横屏,这份源码都能自动调整布局,提供流畅、清晰的用户体验。 这份资源的专业性不仅体现在其高效的响应式设计上,还体现在其丰富的功能和易用性上。它支持多种流行的前端框架和库,如Bootstrap、jQuery等,使得开发过程更加高效、灵活。此外,它还提供了丰富的页面模板和组件,可以满足各种不同的业务需求。 使用这份HTML网站源码资源,你将获得一个专业、美观且易于维护的网站。不仅如此,它的高性能和优秀的搜索引擎优化(SEO)特性也将帮助你的网站在激烈的市场竞争中脱颖而出。总之,这份资源是打造成功网站的不二之选。
资源推荐
资源详情
资源评论
收起资源包目录
心杯咖啡餐厅响应式网页模板-适配移动端-HTML源码.zip (103个子文件)
bootstrap.min.css 111KB
animate.min.css 55KB
font-awesome.min.css 21KB
font-awesome.css 21KB
prettyPhoto.css 19KB
styles.css 18KB
owl.transitions.css 4KB
owl.carousel.css 1KB
fontawesome-webfont.eot 55KB
glyphicons-halflings-regular.eot 20KB
loader.gif 6KB
loader.gif 2KB
loader.gif 2KB
loader.gif 2KB
loader.gif 2KB
loader.gif 2KB
default_thumbnail.gif 227B
default_thumbnail.gif 227B
default_thumbnail.gif 227B
default_thumbnail.gif 227B
default_thumbnail.gif 227B
index.html 29KB
favicon.ico 1KB
bg2.jpg 230KB
6.jpg 198KB
bg1.jpg 198KB
2.jpg 194KB
4.jpg 186KB
1.jpg 180KB
7.jpg 124KB
8.jpg 103KB
5.jpg 99KB
3.jpg 86KB
Live-Space-Interior-Design-Bootstrap-HTML5-free-Template.jpg 62KB
img002.jpg 34KB
02.jpg 33KB
04.jpg 32KB
03.jpg 31KB
img001.jpg 31KB
01.jpg 28KB
Live-Space-Interior-Design-Bootstrap-HTML5-free-web-Template.jpg 20KB
Live-Space-Interior-Design-Bootstrap-HTML5-free-Template-290x222.jpg 19KB
Live-Space-Interior-Design-Bootstrap-HTML5-free-web-Template-290x222.jpg 18KB
Live-Space-Interior-Design-Bootstrap-HTML5-free-Template-300x191.jpg 17KB
Live-Space-Interior-Design-Bootstrap-HTML5-free-web-Template-300x190.jpg 16KB
pic1.jpg 14KB
pic2.jpg 13KB
Live-Space-Interior-Design-Bootstrap-HTML5-free-web-Template-150x150.jpg 8KB
Live-Space-Interior-Design-Bootstrap-HTML5-free-Template-150x150.jpg 8KB
jquery.js 91KB
bootstrap.min.js 35KB
owl.carousel.min.js 22KB
jquery.prettyPhoto.js 22KB
jquery.isotope.min.js 16KB
mousescroll.js 9KB
smoothscroll.js 6KB
custom-scripts.js 6KB
wow.min.js 5KB
respond.min.js 4KB
html5shiv.js 2KB
contact.js 2KB
jquery.inview.min.js 1KB
FontAwesome.otf 84KB
contact.php 2KB
about.png 331KB
logo.png 19KB
apple-touch-icon-144-precomposed.png 16KB
apple-touch-icon-114-precomposed.png 11KB
sprite.png 7KB
apple-touch-icon-72-precomposed.png 6KB
sprite.png 4KB
sprite.png 4KB
sprite.png 4KB
apple-touch-icon-57-precomposed.png 4KB
sprite.png 3KB
sprite.png 3KB
default_thumb.png 2KB
btnPrevious.png 1KB
btnPrevious.png 1KB
btnPrevious.png 1KB
btnPrevious.png 1KB
btnNext.png 1KB
btnNext.png 1KB
btnNext.png 1KB
btnNext.png 1KB
sprite_prev.png 1KB
sprite_next.png 1KB
sprite_y.png 1KB
sprite_x.png 1KB
btnNext.png 845B
btnPrevious.png 828B
contentPatternTop.png 142B
contentPatternBottom.png 142B
contentPatternLeft.png 137B
contentPatternRight.png 136B
contentPattern.png 130B
contentPattern.png 121B
fontawesome-webfont.svg 280KB
glyphicons-halflings-regular.svg 61KB
fontawesome-webfont.ttf 110KB
共 103 条
- 1
- 2
资源评论
DTcode7
- 粉丝: 9528
- 资源: 4695
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 藏区特产销售平台源代码+论文+毕业设计.zip
- B297C8EC5A69641DB3E681E1B3F894E5.mp4
- PrimitivesPro v2.2.unitypackage
- 财务管理系统源代码+论文.zip
- 高级信息通信运行管理员第七套试卷
- UModeler v2.11.6 (May 10, 2024).unitypackage
- 基于Selenium的Java爬虫实战(内含谷歌浏览器Chrom和Chromedriver版本127.0.6486.0)
- 基于FPGA的CORDIC算法旋转模式实现
- bilibili视频解析下载源码
- 基于Selenium的Java爬虫实战(内含谷歌浏览器Chrom和Chromedriver版本124.0.6367.60)
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功