I am unable to extract query value from the url dynamically. My url is of the form www.domain.com/script.php?token=4343434
. I want to extract the token value from this url. The token value is generated dynamically. I tried this but not working.
Thanks in advance.
$token = $_GET['token'];
When I print the token it gets printed.
print_r($_GET['token']); //works