PHP question mark

Source: Internet
Author: User
PHP question mark "pass value" page & nbsp; & lt; ahref = & quot; syodo. php? Action = add_py & amp; py = & lt ;? = $ V [& quot; userName & quot;]? & Gt; & quot; & gt; add friends & lt;/a & gt; accept page $ py =$ _ POST [& quot; py & PHP question mark passing
Value Transfer page

"> Add friends

Accept page

$ Py = $ _ POST ["py"];

Why can't I receive the value of py? Please kindly advise and wait ..................

------ Solution --------------------
$ Py = $ _ GET ["py"];
$ Py = $ _ REQUEST ["py"];
------ Solution --------------------
The main idea is to pass through the GET method. It should be $ _ GET ["py"]
------ Solution --------------------
GET should be used to pass url values
------ Solution --------------------
Upstairs is.
1. use the get method to pass the value of a url. use $ _ GET to get the value.
2. if the special characters are not escaped and can be passed successfully, try lz.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.