Getting parameters from a URL coming from outside the site
| From: | Mário Gamito | Date: | Fri, 20 May 2005 16:51:43 +0000 |
| Subject: | Getting parameters from a URL coming from outside the site | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-215660@lists.php.net to get a copy of this message | ||
Hi,
Following the previous discussion regarding confirmation of
subscriptions (to all the people who replied, my thanks), i now generate
an URL something like this:
http://www.bar.com/confirma_registo_action.php?email=foo@bar.com&code=vu782
This hit will come from someone's mail client.
Then, in file confirma_registo_action.php, i do:
$email = $_GET['email'];
$code = $_GET['code'];
print($email);
print($code);
for testing, but it does print nothing.
So, i'm not getting the parameters from the URL.
I have register_globals=Off in php.ini
Why is this wrong and how to make it right ?
Thanking you in advance.
Warm Regards,