连接php mysql和html时出错 [英] Error in connecting php mysql and html

查看:44
本文介绍了连接php mysql和html时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我用html创建了一个表单,用hp编写的代码将数据显示为html并将其存储在MySQL数据库中。但是,如果我点击提交按钮,我会收到错误消息。它不是将其存储在数据库中,而是要求打开php文件,该文件具有在form标签的action属性中指定的蜜蜂。它是为Windows平台创建的。

我粘贴了我用过的html和php文件的代码,并告诉我如何解决这个问题。

文件name:form.html

Hi,
Ive created a form in html and written code in hp tht takes data feom html and stores it in MySQL database. Bt wen i click on the submit button i get an error. Instead of storing it in database it asks to open the php file which has bees specified in the action attribute of the form tag. It is being created for windows platform.
Im pasting the code of both the html and php file that ive used and plz let me know how to fix that problem.
File name:form.html

展开 | 选择 | Wrap | 行号

推荐答案

您是否正在使用Web服务器执行这些页面,然后是什么是吗?

php是否配置为与Web服务器一起使用?
Are you executing these pages with a web server, then what is it?
Is php is configured to work with the web server?


这不是一个好的主题标题;

错误在连接php mysql和html(紧急帮助Plz)

但是是

连接php mysql和html时出错


所以请避免使用这些单词* please * * help * * urgent *

并确保使用CODE标记。首先参考发布指南

谢谢
This is Not a Good thread title;
Error in connecting php mysql and html (Plz help urgently)
But this is
Error in connecting php mysql and html

So avoid using these words *please* *help* *urgent*
and make sure to use the CODE tags. refer to Posting guidelines first
Thanks



您是否正在使用Web服务器执行这些页面,那么它是什么?

php是配置为与Web服务器一起使用?
Are you executing these pages with a web server, then what is it?
Is php is configured to work with the web server?



我使用xampp来运行这个web pages.php在其中配置。我使用xampp在MySQL中创建了数据库。 Plz让我知道

谢谢


Im using xampp to run this web pages.php is configured in it. Ive created the database in MySQL using xampp. Plz let me know
Thanks


这篇关于连接php mysql和html时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆