Home > Backend Development > PHP Tutorial > php获取当前html页面某个字段的值

php获取当前html页面某个字段的值

WBOY
Release: 2016-06-23 13:34:19
Original
2174 people have browsed it

怎样获取当前html页面的某个字段的信息?

可设一个隐藏域,然后获取该标签的name值即可

 

然后在php中用$_POST获取即可$_POST['idcard'];

 

或者可以在form表单中写上要获取的值,然后用$_SERVER["QUERY_STRING"]来获取

在php中写上$IDcard = $_SERVER["QUERY_STRING"];就可以获取到了。

 

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template