RELATEED CONSULTING
相关咨询
选择下列产品马上在线沟通
服务时间:8:30-17:00
你可能遇到了下面的问题
关闭右侧工具栏

新闻中心

这里有您想知道的互联网营销解决方案
html提交数据php html提交数据的方法

HTML代码 和PHP代码在一个页面。怎么把html里的表单数据提交给php

test.php页面

成都创新互联公司专业为企业提供汉源网站建设、汉源做网站、汉源网站设计、汉源网站制作等企业网站建设、网页设计与制作、汉源企业网站模板建站服务,十多年汉源做网站经验,不只是建网站,更提供有价值的思路和整体网络服务。

判断该页是否提交,如果提交了,就按照正常的接受数据来就行了。

?php

if($_POST){

$words = $_POST["words"];

if ($words) {

echo "收到";

}

}

?

!DOCTYPE html

html lang="en"

head

meta charset="UTF-8"

titleDocument/title

/head

body

form action="test.php" method="post"

input type="text" name="words"

input type="submit" name="" value="提交"

/form

/body

/html

html传输到php数据?

这个需要使用php中的$_REQUEST["code"]全局变量的方式,据可以获取到HTML传输过来的数据了。

怎样把html表单数据传达到php中

form action="save.php" method='post'

input type="text" name = 'email'

button type='submit'提交/button

/form

save.php:

?php

$email = $_POST['email'];

?

html传值给php

html

head

meta http-equiv="Content-Type" content="text/html; charset=utf-8" /

title无标题文档/title

/head

body

form action="" method="get"

Name: input type="text" name="name" /

input type="submit" /

/form

?php

$name=$_GET['name'];

echo "欢迎你:".$name;

?

/body

/html


当前名称:html提交数据php html提交数据的方法
标题URL:http://scyingshan.cn/article/dojjeej.html