I am still somewhat new to php and was wondering the best way to extract a $_GET
variable from a url.
for example how would I capture it out of something like this:
http://www.blahblahblah.com/reset_password.php?token=3072420e7e32cbcf304da791537d757342cf5957
just want to get everything from the "token=etc
..."
thanks in advance
An easy way:
$token = isset($_GET['token']) ? $_GET['token'] : null;
If token
is set it is assigned to $token
, otherwise $token
is null.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With