<?php
/**
* Requires the "PHP Email Form" library
* The "PHP Email Form" library is available only in the pro version of the template
* The library should be uploaded to: vendor/php-email-form/php-email-form.php
* For more info and help: https://bootstrapmade.com/php-email-form/
*/
// Replace contact@example.com with your real receiving email address
$receiving_email_address = 'contact@example.com';
if( file_exists($php_email_form = '../assets/vendor/php-email-form/php-email-form.php' )) {
include( $php_email_form );
} else {
die( 'Unable to load the "PHP Email Form" Library!');
}
$book_a_table = new PHP_Email_Form;
$book_a_table->ajax = true;
$book_a_table->to = $receiving_email_address;
$book_a_table->from_name = $_POST['name'];
$book_a_table->from_email = $_POST['email'];
$book_a_table->subject = "New table booking request from the website";
// Uncomment below code if you want to use SMTP to send emails. You need to enter your correct SMTP credentials
/*
$book_a_table->smtp = array(
'host' => 'example.com',
'username' => 'example',
'password' => 'pass',
'port' => '587'
);
*/
$book_a_table->add_message( $_POST['name'], 'Name');
$book_a_table->add_message( $_POST['email'], 'Email');
$book_a_table->add_message( $_POST['phone'], 'Phone', 4);
$book_a_table->add_message( $_POST['date'], 'Date', 4);
$book_a_table->add_message( $_POST['time'], 'Time', 4);
$book_a_table->add_message( $_POST['people'], '# of people', 1);
$book_a_table->add_message( $_POST['message'], 'Message');
echo $book_a_table->send();
?>
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
这套HTML源代码文件是一个完整的网页模板,适用于各种类型的网站。它采用了最新的HTML5和CSS3技术,具有响应式设计,能够适应不同设备的屏幕尺寸。此外,它还包含了丰富的JavaScript插件,可以实现各种复杂的交互效果。这套源代码文件还具有高度的可定制性。您可以根据自己的需求对页面进行布局调整、颜色更改以及内容替换,轻松打造出符合您项目风格的网站。同时,我们的代码结构清晰、注释详细,方便您学习和理解HTML、CSS和JavaScript等前端技术。您可能面临着课程设计、毕业设计等挑战。这套源代码文件将成为您的得力助手,帮助您展示自己的才华和技能。通过使用这套源代码文件,您可以轻松地完成网站搭建任务,为您的课程设计或毕业设计增添亮点。总的来说,这套HTML源代码文件是一个高效、实用、易用的工具,无论你是专业的网页设计师,还是业余的编程爱好者,都值得拥有。
资源推荐
资源详情
资源评论
收起资源包目录
餐厅环境美食展示网页模板-适配移动端设备-HTML网页源码.zip (99个子文件)
餐厅环境美食展示网页模板-适配移动端设备-HTML网页源码
html
forms
contact.php 1KB
book-a-table.php 2KB
assets
js
main.js 6KB
img
testimonials
testimonials-4.jpg 20KB
testimonials-3.jpg 17KB
testimonials-1.jpg 39KB
testimonials-2.jpg 56KB
about-2.jpg 144KB
stats-bg.jpg 299KB
apple-touch-icon.png 2KB
events-1.jpg 221KB
about.jpg 116KB
menu
menu-item-6.png 126KB
menu-item-5.png 110KB
menu-item-3.png 151KB
menu-item-4.png 140KB
menu-item-1.png 188KB
menu-item-2.png 152KB
chefs
chefs-2.jpg 58KB
chefs-3.jpg 45KB
chefs-1.jpg 36KB
gallery
gallery-2.jpg 78KB
gallery-1.jpg 88KB
gallery-5.jpg 169KB
gallery-8.jpg 109KB
gallery-7.jpg 149KB
gallery-4.jpg 160KB
gallery-6.jpg 154KB
gallery-3.jpg 80KB
reservation.jpg 135KB
events-3.jpg 107KB
events-2.jpg 236KB
hero-img.png 188KB
team-shape.svg 552B
favicon.png 491B
css
main.css 31KB
vendor
php-email-form
validate.js 3KB
glightbox
js
glightbox.min.js 55KB
glightbox.js 107KB
css
plyr.css 51KB
plyr.min.css 44KB
glightbox.css 17KB
glightbox.min.css 13KB
bootstrap
js
bootstrap.js 142KB
bootstrap.bundle.js.map 442KB
bootstrap.esm.min.js.map 216KB
bootstrap.bundle.min.js.map 326KB
bootstrap.min.js 59KB
bootstrap.esm.js 133KB
bootstrap.bundle.min.js 79KB
bootstrap.bundle.js 203KB
bootstrap.js.map 302KB
bootstrap.esm.js.map 301KB
bootstrap.min.js.map 212KB
bootstrap.esm.min.js 72KB
css
bootstrap-grid.css.map 205KB
bootstrap.min.css 191KB
bootstrap-reboot.rtl.min.css.map 48KB
bootstrap.rtl.min.css.map 750KB
bootstrap-utilities.rtl.min.css 55KB
bootstrap-grid.css 70KB
bootstrap-utilities.rtl.css 72KB
bootstrap-grid.min.css.map 128KB
bootstrap-reboot.rtl.css.map 108KB
bootstrap-reboot.min.css.map 39KB
bootstrap-utilities.css 72KB
bootstrap-utilities.css.map 192KB
bootstrap-reboot.rtl.css 8KB
bootstrap.rtl.min.css 191KB
bootstrap.css.map 594KB
bootstrap.css 233KB
bootstrap-utilities.rtl.min.css.map 113KB
bootstrap-grid.rtl.min.css.map 128KB
bootstrap-utilities.rtl.css.map 192KB
bootstrap.rtl.css.map 594KB
bootstrap-reboot.css 8KB
bootstrap-reboot.rtl.min.css 6KB
bootstrap-utilities.min.css.map 113KB
bootstrap-utilities.min.css 55KB
bootstrap-reboot.css.map 108KB
bootstrap-grid.rtl.css.map 205KB
bootstrap-grid.rtl.css 70KB
bootstrap-grid.rtl.min.css 52KB
bootstrap-grid.min.css 52KB
bootstrap.min.css.map 511KB
bootstrap-reboot.min.css 6KB
bootstrap.rtl.css 233KB
swiper
swiper-bundle.min.js 140KB
swiper-bundle.min.css 16KB
purecounter
purecounter_vanilla.js 5KB
bootstrap-icons
bootstrap-icons.css 87KB
bootstrap-icons.json 46KB
index.html 213KB
fonts
bootstrap-icons.woff2 110KB
bootstrap-icons.woff 147KB
aos
aos.js 14KB
aos.css 25KB
scss
sample-inner-page.html 7KB
index.html 48KB
共 99 条
- 1
资源评论
DTcode7
- 粉丝: 9558
- 资源: 4695
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功