PHP experience

xiaoxiao2021-03-06  40

$ _SERVER ["http_refeerer"] can get a request for which page submitted. $ URL = $ _SERVER ['Server_Name']. $ _ server ['php_self']; $ URL_FULL = $ URL. '?'. $ _ server ['query_string']; // Get the current URL Read page Parameters: $ username = $ _GET ["username"]; if POST is used with $ usrname = $ _POST ["Username"];

Redirection: Use the header method to pay attention to the OUT output, in PHP, sometimes one space, one blank line can cause unable to jump. Because it is considered to be output.

Method 1: HEADER ("Location: Index.php"); Method 2: Echo "