<?php
if(!$_POST) exit;
// Email address verification, do not edit.
function isEmail($email) {
return(preg_match("/^[-_.[:alnum:]]+@((([[:alnum:]]|[[:alnum:]][[:alnum:]-]*[[:alnum:]])\.)+(ad|ae|aero|af|ag|ai|al|am|an|ao|aq|ar|arpa|as|at|au|aw|az|ba|bb|bd|be|bf|bg|bh|bi|biz|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|co|com|coop|cr|cs|cu|cv|cx|cy|cz|de|dj|dk|dm|do|dz|ec|edu|ee|eg|eh|er|es|et|eu|fi|fj|fk|fm|fo|fr|ga|gb|gd|ge|gf|gh|gi|gl|gm|gn|gov|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|il|in|info|int|io|iq|ir|is|it|jm|jo|jp|ke|kg|kh|ki|km|kn|kp|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|me|mg|mh|mil|mk|ml|mm|mn|mo|mp|mq|mr|ms|mt|mu|museum|mv|mw|mx|my|mz|na|name|nc|ne|net|nf|ng|ni|nl|no|np|nr|nt|nu|nz|om|org|pa|pe|pf|pg|ph|pk|pl|pm|pn|pr|pro|ps|pt|pw|py|qa|re|ro|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sj|sk|sl|sm|sn|so|sr|st|su|sv|sy|sz|tc|td|tf|tg|th|tj|tk|tm|tn|to|tp|tr|tt|tv|tw|tz|ua|ug|uk|um|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|ye|yt|yu|za|zm|zw)$|(([0-9][0-9]?|[0-1][0-9][0-9]|[2][0-4][0-9]|[2][5][0-5])\.){3}([0-9][0-9]?|[0-1][0-9][0-9]|[2][0-4][0-9]|[2][5][0-5]))$/i",$email));
}
if (!defined("PHP_EOL")) define("PHP_EOL", "\r\n");
$first_name = $_POST['first_name'];
$last_name = $_POST['last_name'];
$email = $_POST['email'];
$phone = $_POST['phone'];
$select_price = $_POST['select_price'];
$select_service = $_POST['select_service'];
$subject = $_POST['subject'];
$comments = $_POST['comments'];
$verify = $_POST['verify'];
if(trim($first_name) == '') {
echo '<div class="error_message">Attention! You must enter your name.</div>';
exit();
} else if(trim($email) == '') {
echo '<div class="error_message">Attention! Please enter a valid email address.</div>';
exit();
} else if(!isEmail($email)) {
echo '<div class="error_message">Attention! You have enter an invalid e-mail address, try again.</div>';
exit();
}
if(trim($comments) == '') {
echo '<div class="error_message">Attention! Please enter your message.</div>';
exit();
}
if(get_magic_quotes_gpc()) {
$comments = stripslashes($comments);
}
// Configuration option.
// Enter the email address that you want to emails to be sent to.
// Example $address = "joe.doe@yourdomain.com";
//$address = "example@themeforest.net";
$address = "example@yourdomain.com";
// Configuration option.
// i.e. The standard subject will appear as, "You've been contacted by John Doe."
// Example, $e_subject = '$name . ' has contacted you via Your Website.';
$e_subject = 'You\'ve been contacted by ' . $first_name . '.';
// Configuration option.
// You can change this if you feel that you need to.
// Developers, you may wish to add more fields to the form, in which case you must be sure to add them here.
$e_body = "You have been contacted by $first_name. $first_name selected service of $select_service, their additional message is as follows. Customer max budge is $select_price, for this project." . PHP_EOL . PHP_EOL;
$e_content = "\"$comments\"" . PHP_EOL . PHP_EOL;
$e_reply = "You can contact $first_name via email, $email or via phone $phone";
$msg = wordwrap( $e_body . $e_content . $e_reply, 70 );
$headers = "From: $email" . PHP_EOL;
$headers .= "Reply-To: $email" . PHP_EOL;
$headers .= "MIME-Version: 1.0" . PHP_EOL;
$headers .= "Content-type: text/plain; charset=utf-8" . PHP_EOL;
$headers .= "Content-Transfer-Encoding: quoted-printable" . PHP_EOL;
if(mail($address, $e_subject, $msg, $headers)) {
// Email has sent successfully, echo a success page.
echo "<fieldset>";
echo "<div id='success_page'>";
echo "<h1>Email Sent Successfully.</h1>";
echo "<p>Thank you <strong>$first_name</strong>, your message has been submitted to us.</p>";
echo "</div>";
echo "</fieldset>";
} else {
echo 'ERROR!';
}
没有合适的资源?快使用搜索试试~ 我知道了~
企业级网站源码-云主机数据技术服务网页模板-响应式适配移动端.zip
共144个文件
png:44个
jpg:24个
css:19个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 79 浏览量
2024-03-25
08:41:43
上传
评论
收藏 7.98MB ZIP 举报
温馨提示
打造企业级网站,源码在手,天下我有! 移动端完美适配 — 在这个以手机为王的时代,我们的HTML源码专为移动设备优化,确保你的企业网站无论在大屏还是小屏上都能流畅展现,抓住移动互联网的巨量流量。 专业企业设计 — 每行代码都经过精心设计与优化,兼顾美观与性能。让你的网站不仅拥有专业的外观,还能提供快速的加载速度和优秀的用户体验。 高度可定制 — 这份源码易于修改和扩展,让你随心所欲地定制功能和样式,无需担心技术难题。 SEO优化结构 — 良好的SEO结构让你的网站更容易被搜索引擎发现,提升品牌曝光度,带来更多潜在客户。 作为一名程序员,时间就是金钱,效率就是生命。合理利用模板,让你的项目开发事半功倍,立刻启动你的互联网成功之旅!你将节省无数宝贵时间和避免潜在的开发坑洞,快速部署一个高效、吸引人且响应式的企业网站。现在行动,让你的业务在数字世界中翱翔!
资源推荐
资源详情
资源评论
收起资源包目录
企业级网站源码-云主机数据技术服务网页模板-响应式适配移动端.zip (144个子文件)
bootstrap.css 143KB
bootstrap.min.css 118KB
versions.css 63KB
animate.css 55KB
animate.min.css 52KB
style.css 47KB
font-awesome.css 34KB
font-awesome.min.css 28KB
pr_loading.css 26KB
bootstrap-theme.css 26KB
bootstrap-theme.min.css 23KB
prettyPhoto.css 19KB
responsive.css 10KB
bootstrap-touch-slider.css 8KB
owl.carousel.css 3KB
flaticon.css 3KB
flaticon.css 3KB
colors.css 2KB
custom.css 36B
fontawesome-webfont.eot 75KB
Flaticon.eot 21KB
glyphicons-halflings-regular.eot 20KB
loader.gif 6KB
ajax-loader.gif 3KB
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 51KB
hosting.html 36KB
flaticon.html 34KB
features.html 34KB
domain.html 29KB
pricing.html 26KB
contact.html 17KB
testimonials.html 16KB
favicon.ico 15KB
parallax_20.jpg 975KB
parallax_19.jpg 683KB
parallax_21.jpg 563KB
parallax_11.jpg 495KB
hosting_03.jpg 385KB
parallax_15.jpg 365KB
parallax_14.jpg 365KB
hosting_02.jpg 323KB
parallax_16.jpg 308KB
parallax_12.jpg 260KB
hosting_01.jpg 245KB
about_02.jpg 219KB
parallax_17.jpg 217KB
slider-03.jpg 216KB
slider-01.jpg 211KB
parallax_10.jpg 211KB
parallax_13.jpg 161KB
parallax_04.jpg 126KB
parallax_18.jpg 120KB
banner.jpg 105KB
parallax_03.jpg 97KB
slider-02.jpg 88KB
version_soon.jpg 30KB
parallax_02.jpg 24KB
all.js 301KB
owl.carousel.js 83KB
mapsed.js 56KB
jquery.prettyPhoto.js 21KB
scroll.js 18KB
jquery.vide.js 12KB
animate.js 9KB
modernizer.js 8KB
retina.js 7KB
custom.js 6KB
hoverdir.js 5KB
portfolio.js 2KB
bootstrap-touch-slider.js 2KB
map.js 1KB
01-custom-places-example.js 789B
bootstrap.min.css.map 529KB
bootstrap.css.map 380KB
bootstrap-theme.css.map 47KB
bootstrap-theme.min.css.map 25KB
FontAwesome.otf 122KB
contact.php 4KB
bg.png 104KB
parallax_02.png 50KB
parallax_05.png 34KB
rocket.png 29KB
testi_03.png 13KB
phonebg.png 13KB
testi_02.png 12KB
testi_01.png 11KB
logo-hosting-light.png 7KB
sprite.png 7KB
logo_04.png 5KB
logo-hosting.png 5KB
共 144 条
- 1
- 2
资源评论
DTcode7
- 粉丝: 8523
- 资源: 4661
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 背景音乐很好听,melodious, ethereal and celestial
- 基于Qt的UDP组播例程,UdpGroupSender、UdpGroupTalk,使用C++编写
- yolo开发这是一个来自yolo物体检测模型的人重新识别系统
- 机票预定系统黑盒测试报告
- AndroidStudio安装所需gradle离线配置资源
- 【matlab GUI仿真】说明:GUI界面设计,四旋翼飞机仿真 VR界面设计
- contact(1).dat
- 计算机储蓄系统详细设计
- vue开发基于 vue 和 vue-cli 搭建的整套开发底层,敏捷开发
- 基于SSM+MySql的超市管理系统源码+数据库+说明文档.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功