Get query_string

Views: 4 Last modified: August 03rd, 2011 Comments: 0

You are able to get the query string from the superglobal $_SERVER, just use one of the below methods. You can get it if you use the GET method for forms. POST is not supported.

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

You may get something what looks like this:

Query_String=It+worked&submit=Submit
VN:F [1.9.13_1145]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.13_1145]
Rating: 0 (from 0 votes)

    Mail this!

    To: From:Sum {4+8} =  
    Anything to add ?

        You must be logged in to post a comment.