使用php从Web表单将值插入数据库

时间:2022-09-25 16:25:57

I have created a web form which validates each field and if every field is fill up and follows the requirements then it displays thank you message. Other wise it shows error. What I am trying to do with the form is, I want to insert all the values into my database using PDO_MySql. I am referring a web link where you can find the codes. The reason why I didn't put on here is for my study issues. <>https://www.dropbox.com/sh/6x9k3oo3t9zc3fz/OZtUYJAOKp<>

我创建了一个Web表单,用于验证每个字段,如果每个字段都填满并符合要求,则会显示感谢信息。其他明智的是它显示错误。我想对表单做的是,我想使用PDO_MySql将所有值插入到我的数据库中。我指的是一个网站链接,您可以在其中找到代码。我没有在这里放的原因是我的学习问题。 <> https://www.dropbox.com/sh/6x9k3oo3t9zc3fz/OZtUYJAOKp <>

Thanks.

1 个解决方案

#1


0  

I saw your code. You are not inserting anything in your database. You are just validating if the the required fields are present.

我看到了你的代码。您没有在数据库中插入任何内容。您只是验证是否存在必填字段。

#1


0  

I saw your code. You are not inserting anything in your database. You are just validating if the the required fields are present.

我看到了你的代码。您没有在数据库中插入任何内容。您只是验证是否存在必填字段。