html传数据给php,html传输数据

html 中的值怎么传送给php使用

通过表单,例如:

创新互联主要从事成都网站设计、做网站、网页设计、企业做网站、公司建网站等业务。立足成都服务田家庵,十年网站建设经验,价格优惠、服务专业,欢迎来电咨询建站服务:13518219792

form action="form_action.php method="get"

pFirst name: input type="text" name="fname" //p

pLast name: input type="text" name="lname" //p

input type="submit" value="Submit" /

/form

其中的input 中的 name 就可以被PHP接收

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数据?

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


本文题目:html传数据给php,html传输数据
网页地址:http://xwwzsj.com/article/hdeopg.html

其他资讯

售后响应及时

7×24小时客服热线

数据备份

更安全、更高效、更稳定

价格公道精准

项目经理精准报价不弄虚作假

合作无风险

重合同讲信誉,无效全额退款