<?php
// Change this with your blog name and email address
$the_blogname = 'Envision';
$the_myemail = 'support@themefuse.com';
if(isset($_POST['email'])){
error_reporting(0);
$errorC = false;
$the_email = $_POST['email'];
$the_name = $_POST['yourname'];
$the_message = $_POST['message'];
$the_phone = $_POST['phone'];
$the_fax = $_POST['fax'];
$the_company = $_POST['company'];
$the_website = $_POST['website'];
# want to add aditional fields? just add them to the form in template_contact.php,
# you dont have to edit this file
//added fields that are not set explicit like the once above are combined and added before the actual message
$already_used = array('email','yourname','message','phone','fax','company','website','myblogname','tempcode','temp_url','ajax');
$attach = '';
foreach ($_POST as $key => $field)
{
if(!in_array($key,$already_used))
{
$attach.= $key.": ".$field."<br /> \n";
}
}
$attach.= "<br /> \n";
if(!checkmymail($the_email))
{
$errorC = true;
$the_emailclass = "error";
}else{
$the_emailclass = "valid";
}
if($the_message == "")
{
$errorC = true;
$the_messageclass = "error";
}else{
$the_messageclass = "valid";
}
if($errorC == false)
{
$to = $the_myemail;
$subject = "New Message from " . $the_blogname;
$header = 'MIME-Version: 1.0' . "\r\n";
$header .= 'Content-type: text/html; charset=utf-8' . "\r\n";
$header .= 'From:'. $the_email . " \r\n";
$message1 = nl2br($the_message);
if(!empty($the_name)) $the_name = "Name: $the_name <br/>";
if(!empty($the_company)) $the_company = "Company: $the_company <br/>";
if(!empty($the_phone)) $the_phone = "Phone: $the_phone <br/>";
if(!empty($the_fax)) $the_fax = "Fax: $the_fax <br/>";
if(!empty($the_website)) $the_website = "Website: $the_website <br/>";
$message = "
You have a new message! <br/>
$the_name
$the_company
$the_phone
$the_website
$attach <br />
Message: $message1 <br />";
if(@mail($to,$subject,$message,$header)) $send = true; else $send = false;
if(isset($_POST['ajax'])){
if ($send)
echo '<h3>Your message has been sent!</h3><div class="confirm">
<p class="textconfirm">Thank you for contacting us.<br/>We will get back to you within 2 business days.</p>
</div>';
else
echo '<h3>Oops!</h3><div class="confirm">
<p class="texterror">Due to an unknown error, your form was not submitted, please resubmit it or try later.</p>
</div>';
}
}
}
function checkmymail($mailadresse){
$email_flag=preg_match("!^\w[\w|\.|\-]+@\w[\w|\.|\-]+\.[a-zA-Z]{2,4}$!",$mailadresse);
return $email_flag;
}
?>
没有合适的资源?快使用搜索试试~ 我知道了~
黑色大气精美的幻灯科技产品展示模板__H5模板_自适应响应式源码.rar
共298个文件
png:131个
jpg:54个
gif:54个
0 下载量 5 浏览量
2023-08-05
10:50:41
上传
评论
收藏 4.8MB RAR 举报
温馨提示
黑色大气精美的幻灯科技产品展示模板__H5模板_自适应响应式源码.rar
资源推荐
资源详情
资源评论
收起资源包目录
黑色大气精美的幻灯科技产品展示模板__H5模板_自适应响应式源码.rar (298个子文件)
styles.css 62KB
jquery-ui-1.8.4.custom.css 19KB
prettyPhoto.css 16KB
shCore.css 7KB
grid.css 4KB
ui.selectmenu.css 4KB
shThemeDefault.css 4KB
font2.css 2KB
violet.css 1000B
home.css 741B
styles_ie.css 517B
gray.css 131B
default.css 91B
blue.css 88B
custom.css 0B
Thumbs.db 4KB
slider1_image_4.gif 118KB
sidebar_left_bg.gif 9KB
sidebar_right_bg.gif 9KB
table_icons_bg_hover.gif 7KB
sidebar_bg.gif 6KB
table_icons_bg.gif 5KB
ico_creditcards.gif 4KB
framed_tab_bg_right.gif 3KB
pagination_bg.gif 3KB
loader.gif 2KB
loader.gif 2KB
loader.gif 2KB
loader.gif 2KB
loader.gif 2KB
newsletter_input.gif 2KB
tabs_active_bg.gif 2KB
title_bar_shadow.gif 2KB
framed_tab_current.gif 1KB
framed_tab_bg_left.gif 1KB
framed_tab_bg.gif 1KB
newsletter_bg.gif 943B
table_head_bg.gif 873B
line_gray.gif 822B
tabs_bg.gif 737B
table_corner_right.gif 701B
table_corner_left.gif 701B
footer_bg.gif 474B
ico_quote.gif 450B
sidebar_list_line.gif 366B
title_bar_bg.gif 345B
buttons_submit.gif 272B
default_thumbnail.gif 227B
default_thumbnail.gif 227B
default_thumbnail.gif 227B
default_thumbnail.gif 227B
default_thumbnail.gif 227B
sidebar_hover.gif 184B
pagination_next.gif 176B
pagination_prev.gif 175B
toggle_plus.gif 166B
framed_tab_arrow.gif 159B
toggle_minus.gif 151B
table_td.gif 137B
table_row_title.gif 124B
footer_top.gif 109B
ico_dot_blue.gif 100B
table_row_title2.gif 93B
ico_arrow_blue.gif 79B
ico_arrow_blue_down.gif 78B
ico_arrow_dark.gif 59B
ico_arrow_blue2.gif 59B
icon_reply.gif 56B
sidebar_list_arrow.gif 52B
divider_line.gif 44B
styles-font.html 42KB
styles-shortcodes.html 42KB
styles-columns.html 26KB
blog-details.html 24KB
page-sidebar-r.html 23KB
page-sidebar-l.html 23KB
portfolio-4cols.html 22KB
index-slider-text.html 20KB
page-pricing.html 19KB
blog.html 18KB
portfolio-2cols.html 17KB
index.html 17KB
index-slider-images.html 17KB
page-fullwidth.html 16KB
index-slider-flash.html 16KB
portfolio-3cols.html 16KB
styles-typography.html 15KB
portfolio.html 15KB
contacts.html 15KB
slider_img_5.jpg 158KB
slider1_image_1.jpg 151KB
slider_img_3.jpg 145KB
slider_img_1.jpg 141KB
slider1_image_2.jpg 131KB
slider1_image_5.jpg 122KB
slider_img_6.jpg 107KB
slider1_image_4.jpg 104KB
slider1_image_3.jpg 94KB
contact_map.jpg 83KB
slider_video.jpg 82KB
共 298 条
- 1
- 2
- 3
资源评论
supeerzdj
- 粉丝: 10
- 资源: 6185
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- Flume进阶-自定义拦截器jar包
- Dubins曲线算法讲解和在运动规划中的使用.pdf
- 上市公司-股票性质数据-工具变量(民企、国企、央企)2003-2022年.dta
- 上市公司-股票性质数据-工具变量(民企、国企、央企)2003-2022年.xlsx
- Reeds+Shepp曲线算法讲解和实现.pdf
- 毕业设计基于SpringBoot+MyBatisPlus+MySQL+Vue的外卖配送信息系统源代码+数据库
- 词向量(Word Embeddings)是自然语言处理(NLP)领域的一种重要技术.txt
- Surfer,线性函数
- MyBatis 的动态 SQL 是其核心特性之一.txt
- 时代的sdddsddsddsd
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功