$_GET - an array:
$token = $_GET['token'];
So, if you print, you should see the marker part of the query string:
echo "'Token: $token'"; // should display 'Token: 3072420e7e32cbcf304da791537d757342cf5957';
Note
If you are trying to use $ token to search the mysql database, you need to hide the slashes first to prevent security issues:
$token = mysql_real_escape_string($_GET['token']);
In addition, you first need to connect to mysql before calling mysql_real_escape_string() .
NOTE V.2
In your query string, your token will consist of ?token= until PHP encounters a query key / pair (usually & ; ). To wit:
http:
&token2=otherstuff will be another key available for $_GET['token2'] , so this is not a problem with $_GET['token'] .
source share