Getting parameters from the URL
| From: | Mário Gamito | Date: | Fri, 20 May 2005 15:48:07 +0000 |
| Subject: | Getting parameters from the URL | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-215655@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
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,
Mário Gamito