php和html之间的传值有关问题

WBOY
Release: 2016-06-13 12:27:34
Original
993 people have browsed it

php和html之间的传值问题

这样的表单我用form怎么向php传值,重点是php怎么接收这样的数据
------解决思路----------------------
form表单里两个参数,一个action,表明了往哪个文件传,不写默认传自己;一个method,表明用什么方式传,有get和post两种
input框加name
接受的文件里用$_POST(post方式)或者$_GET(get方式)接收。最简单的是直接var_dump($_POST)或者var_dump($_GET)然后你就知道怎么调用了

Related labels:
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