PHP question mark pass value question pass value page & nbsp; & lt; ahref & quot; syodo. php? Actionadd_py & amp; py & lt ;? $ V [& quot; userName & quot;]? & Gt; & quot; & gt; add friends & lt; a & gt; accept page $ py $ _ POST [& quot; py & quot;]; why can't I receive the value of py? Ask the expert for advice and pass the value through the PHP question mark
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"];
Or
$ 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.