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

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

WBOY
WBOYOriginal
2016-06-23 13:34:192127browse

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

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

 

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

 

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

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

 

Statement:
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