php-PHP用get方式提交表单,参数可以附加在url后传递吗?

WBOY
Release: 2016-06-02 11:29:59
Original
845 people have browsed it

php表单

发送页:send.php

<code> <form method="get" action="recv.php?name=csdn">     <input type="submit" value="SUBMIT"> </form></code>
Copy after login

接受页:recv.php

<code>echo $name; </code>
Copy after login

问题来了,为何在recv.php页面里就得不到参数name?相反,如果使用post方式发送,就能获得参数name

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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!