<?php
// Replace this with your own email address
$siteOwnersEmail = '[email protected]';
if($_POST) {
$name = trim(stripslashes($_POST['contactName']));
$email = trim(stripslashes($_POST['contactEmail']));
$subject = trim(stripslashes($_POST['contactSubject']));
$contact_message = trim(stripslashes($_POST['contactMessage']));
// Check Name
if (strlen($name) < 2) {
$error['name'] = "Please enter your name.";
}
// Check Email
if (!preg_match('/^[a-z0-9&\'\.\-_\+]+@[a-z0-9\-]+\.([a-z0-9\-]+\.)*+[a-z]{2}/is', $email)) {
$error['email'] = "Please enter a valid email address.";
}
// Check Message
if (strlen($contact_message) < 15) {
$error['message'] = "Please enter your message. It should have at least 15 characters.";
}
// Subject
if ($subject == '') { $subject = "Contact Form Submission"; }
// Set Message
$message .= "Email from: " . $name . "<br />";
$message .= "Email address: " . $email . "<br />";
$message .= "Message: <br />";
$message .= $contact_message;
$message .= "<br /> ----- <br /> This email was sent from your site's contact form. <br />";
// Set From: header
$from = $name . " <" . $email . ">";
// Email Headers
$headers = "From: " . $from . "\r\n";
$headers .= "Reply-To: ". $email . "\r\n";
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";
if (!$error) {
ini_set("sendmail_from", $siteOwnersEmail); // for windows server
$mail = mail($siteOwnersEmail, $subject, $message, $headers);
if ($mail) { echo "OK"; }
else { echo "Something went wrong. Please try again."; }
} # end if - no validation error
else {
$response = (isset($error['name'])) ? $error['name'] . "<br /> \n" : null;
$response .= (isset($error['email'])) ? $error['email'] . "<br /> \n" : null;
$response .= (isset($error['message'])) ? $error['message'] . "<br />" : null;
echo $response;
} # end if - there was a validation error
}
?>
没有合适的资源?快使用搜索试试~ 我知道了~
html5单页模版kreative是一款单页超长html5网页模板下载 .rar
共132个文件
jpg:24个
ttf:13个
svg:13个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 137 浏览量
2022-11-20
09:17:26
上传
评论
收藏 2.45MB RAR 举报
温馨提示
html5单页模版kreative是一款单页超长html5网页模板下载。.rar
资源推荐
资源详情
资源评论
收起资源包目录
html5单页模版kreative是一款单页超长html5网页模板下载 .rar (132个子文件)
font-awesome-ie7.css 40KB
font-awesome-ie7.min.css 37KB
layout.css 36KB
font-awesome.css 27KB
font-awesome.min.css 22KB
base.css 17KB
fonts.css 7KB
fontawesome-webfont.eot 37KB
OpenSans-ExtraBoldItalic-webfont.eot 21KB
OpenSans-SemiboldItalic-webfont.eot 20KB
OpenSans-ExtraBold-webfont.eot 20KB
OpenSans-LightItalic-webfont.eot 20KB
OpenSans-Italic-webfont.eot 20KB
OpenSans-BoldItalic-webfont.eot 20KB
OpenSans-Semibold-webfont.eot 20KB
OpenSans-Regular-webfont.eot 19KB
OpenSans-Bold-webfont.eot 19KB
OpenSans-Light-webfont.eot 19KB
montserrat-regular-webfont.eot 18KB
montserrat-bold-webfont.eot 18KB
loader.gif 5KB
loader2.gif 5KB
montserrat-regular-demo.html 37KB
montserrat-bold-demo.html 37KB
index.html 32KB
demo.html 20KB
blog-single.html 14KB
blog.html 10KB
favicon.ico 894B
post-image-c-972x360.jpg 160KB
intro-bg.jpg 100KB
cosmic-sneakers.jpg 82KB
m-cosmic-sneakers.jpg 74KB
post-image-b-972x360.jpg 62KB
post-image-a-972x360.jpg 58KB
m-judah.jpg 53KB
judah.jpg 51KB
m-fields.jpg 47KB
m-sneaker-splash.jpg 46KB
sneaker-splash.jpg 45KB
fields.jpg 45KB
m-clock.jpg 40KB
clock.jpg 39KB
m-eve.jpg 36KB
eve.jpg 33KB
m-vector-flower.jpg 29KB
m-milk-splash.jpg 25KB
vector-flower.jpg 22KB
milk-splash.jpg 21KB
sample-image-120x120.jpg 7KB
team-img-01.jpg 6KB
team-img-02.jpg 6KB
team-img-03.jpg 6KB
jquery-1.10.2.min.js 91KB
gmaps.js 52KB
jquery.flexslider.js 51KB
jquery-migrate-1.2.1.min.js 7KB
jquery.reveal.js 5KB
scrollspy.js 5KB
init.js 2KB
smoothscrolling.js 2KB
font-awesome-ie7.less 19KB
icons.less 17KB
variables.less 9KB
extras.less 2KB
core.less 2KB
bootstrap.less 2KB
font-awesome.less 1KB
mixins.less 1KB
path.less 742B
FontAwesome.otf 60KB
sendEmail.php 2KB
grey.png 44KB
direction-nav-right.png 3KB
direction-nav-left.png 3KB
k-opacity-70.png 3KB
k-opacity-60.png 3KB
author-img.png 2KB
client-img.png 2KB
user-01.png 2KB
user-02.png 2KB
user-03.png 2KB
logo.png 2KB
servicesbg.png 970B
font-awesome-ie7.scss 22KB
_icons.scss 17KB
_variables.scss 8KB
_extras.scss 2KB
_core.scss 2KB
_bootstrap.scss 2KB
font-awesome.scss 1KB
_mixins.scss 1KB
_path.scss 753B
fontawesome-webfont.svg 193KB
OpenSans-LightItalic-webfont.svg 120KB
OpenSans-Italic-webfont.svg 120KB
OpenSans-SemiboldItalic-webfont.svg 120KB
OpenSans-ExtraBoldItalic-webfont.svg 118KB
OpenSans-BoldItalic-webfont.svg 118KB
OpenSans-Regular-webfont.svg 117KB
共 132 条
- 1
- 2
资源评论
reg183
- 粉丝: 1815
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- vscode-1.64.1.tar源码文件
- vscode-1.64.0.tar源码文件
- vscode-1.52.0.tar源码文件
- Music-Player +PlayerActivity+ rockplayer+ SeeJoPlayer 播放器JAVA源码
- vscode-1.46.0.tar源码文件
- 最近很火植物大战僵尸杂交版2.08苹果+安卓+PC+防闪退工具V2+修改工具+高清工具+通关存档整合包更新
- 超级好用的截图工具PixPin,可录制Gif图
- Screenshot_2024-05-21-17-06-42-64_2332cb9b27b851b548ba47a91682926c.jpg
- 毕业设计参考 - 基于树莓派、OpenCV及Python的人脸识别
- node-v18.20.2-linux-arm64
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功