将PHP表单提交给XAMPP MySQL数据库 [英] Submission of PHP Form to XAMPP MySQL database

查看:146
本文介绍了将PHP表单提交给XAMPP MySQL数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我为餐饮服务创建了一个php表单,我打算将其插入到MySQL数据库中:php表单称为index.php:

 <!DOCTYPE html> 
< html lang =en>
< head>
< meta charset =utf8>
< meta http-equiv =X-UA-Compatiblecontent =IE = edge>
< meta name =viewportcontent =width = device-width,initial-scale = 1>
< link rel =stylesheethref =css / bootstrap.min.css>
< link rel =stylesheethref =css / font-awesome.min.css>
< link rel =stylesheethref =css / style.css>
< title> BOOTSTRAP< / title>
< / head>
< div class =container-fluid>
< div class =row>
< div class =inquiry col-md-6>
< h1>立即查询< / h1>
< form method =postaction =inquire.phpname =inquireformid =inquireForm>
< div class =form-group>
< label for =InputName>名称*< / label>
< input class =form-controltype =textid =inputNameplaceholder =Namename =Cust`Name>
< / div>
< div class =form-group>
< label for =InputLocation>位置*< / label>
< input class =form-controltype =textid =inputLocationplaceholder =Locationname =Location>
< / div>
< / form>
< form class =form-inline>
< div class =form-group>
< label for =SelectDate>事件日期*< / label>
发送“验证码”获取 | 15天全站免登陆