<?
/************************
* Variables you can change
*************************/
$mailto = "your email goes here"; /*PUT YOUR EMAIL IN HERE*/
$cc = "";
$bcc = "";
$subject = "enquiry";
$vname = "Website Contact Form";
/************************
* do not modify anything below unless you know PHP/HTML/XHTML
*************************/
$email = $_POST['email'];
function validateEmail($email)
{
if(eregi('^[a-zA-Z0-9._-]+@[a-zA-Z0-9-]+\.[a-zA-Z]{2,4}(\.[a-zA-Z]{2,3})?(\.[a-zA-Z]{2,3})?$', $email))
return true;
else
return false;
}
if(strlen($_POST['name']) < 1 || strlen($_POST['message']) < 1 || validateEmail($email) == FALSE)
{
if(empty($_POST['name']))
{
$emailerror .= '<li>Enter name</li>';
}
if(validateEmail($email) == FALSE)
{
$emailerror .= '<li>Enter valid email</li>';
}
if(empty($_POST['message']))
{
$emailerror .= '<li>Enter message</li>';
}
}
else
{
$emailerror .= "Your email has been sent successfully";
// NOW SEND THE ENQUIRY
$timestamp = date("F j, Y, g:ia");
$messageproper ="\n\n" .
"Name: " .
ucwords($_POST['name']) .
"\n" .
"Email: " .
ucwords($email) .
"\n" .
"Comments: " .
$_POST['message'] .
"\n" .
"\n\n" ;
$messageproper = trim(stripslashes($messageproper));
mail($mailto, $subject, $messageproper, "From: \"$vname\" <".$_POST['e_mail'].">\nReply-To: \"".ucwords($_POST['first_name'])."\" <".$_POST['e_mail'].">\nX-Mailer: PHP/" . phpversion() );
}
?>
<div id='emailerror'>
<ul>
<? echo $emailerror; ?>
</ul>
</div>
没有合适的资源?快使用搜索试试~ 我知道了~
摄影图片画廊幻灯展示HTML5模板推荐_图片 展示 大图 相册 画廊 html5 css3 婚纱 整站 摄影 圆角 大气.rar
共41个文件
png:16个
jpg:7个
xml:5个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 115 浏览量
2023-04-28
08:39:01
上传
评论
收藏 3.93MB RAR 举报
温馨提示
摄影图片画廊幻灯展示HTML5模板推荐_图片 展示 大图 相册 画廊 html5 css3 婚纱 整站 摄影 圆角 大气
资源推荐
资源详情
资源评论
收起资源包目录
摄影图片画廊幻灯展示HTML5模板推荐_图片 展示 大图 相册 画廊 html5 css3 婚纱 整站 摄影 圆角 大气.rar (41个子文件)
摄影图片画廊幻灯展示HTML5模板推荐_图片 展示 大图 相册 画廊 html5 css3 婚纱 整站 摄影 圆角 大气
tp0_liquid-gem
work-template.html 9KB
css
style.css 9KB
work.css 8KB
index.html 10KB
images
.DS_Store 6KB
logo.png 4KB
slideshow
_notes
dwsync.xml 352B
sliderimage3.jpg 589KB
sliderimage1.jpg 414KB
sliderimage2.jpg 513KB
backgroundtexture.png 81KB
icons
_notes
dwsync.xml 430B
google.png 3KB
twitter.png 3KB
youtube.png 3KB
facebook.png 3KB
work
.DS_Store 6KB
SkiesOfSpain
_notes
dwsync.xml 328B
sky1.JPG 138KB
sky3.JPG 138KB
sky2.JPG 309KB
_notes
dwsync.xml 149B
thumbs
item8.png 177KB
.DS_Store 6KB
item.png 137KB
item2.png 198KB
item10.png 173KB
item9.png 302KB
_notes
dwsync.xml 1KB
item7.png 207KB
item4.png 191KB
item5.png 181KB
item3.png 171KB
item6.png 126KB
submitemail.php 1KB
s.jpg 34KB
scripts
.DS_Store 6KB
jquery.carouFredSel-5.5.2.js 75KB
jquery.form.js 26KB
jquery.easing.1.3.js 8KB
scripts.js 2KB
共 41 条
- 1
资源评论
紫微前端
- 粉丝: 4301
- 资源: 869
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功