GET URL parameter in PHP

前端 未结 9 985
旧时难觅i
旧时难觅i 2020-11-22 07:32

I\'m trying to pass a URL as a url parameter in php but when I try to get this parameter I get nothing

I\'m using the following url form:

http://loc         


        
9条回答
  •  醉话见心
    2020-11-22 08:12

    Use this:

    $parameter = $_SERVER['QUERY_STRING'];
    echo $parameter;
    

    Or just use:

    $parameter = $_GET['link'];
    echo $parameter ;
    

提交回复
热议问题