Re: [PHP] Getting parameters from a URL coming from outside the site

2005-05-20 Thread Brian V Bonini
On Fri, 2005-05-20 at 12:51, Mário Gamito wrote:

> Why is this wrong and how to make it right ?

I did this and sent myself a link to it via email, clicked it from
within my email client (Evolution) which launched a browser and called
the script successfully writing the vars to test.txt. Of course this is
not use-able in the real world but it works for testing...

http:/foobar.com/[EMAIL PROTECTED]&code=vu782

http://foobar.com/test.txt";);

?>


-- 

s/:-[(/]/:-)/g


BrianGnuPG -> KeyID: 0x04A4F0DC | Key Server: pgp.mit.edu
==
gpg --keyserver pgp.mit.edu --recv-keys 04A4F0DC
Key Info: http://gfx-design.com/keys
Linux Registered User #339825 at http://counter.li.org

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Getting parameters from a URL coming from outside the site

2005-05-20 Thread Mário Gamito
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/[EMAIL PROTECTED]&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,

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php