Use the superglobal array $_GET echo $_GET{'id'}; // should return abc
Cheers Scott Stéphane Génin wrote, On 11/27/2002 10:58 AM:
Hello, I want to read the parameters in the URL, but I can't find the right way to do that. I've tried several things : my URL is: http://localhost/test.php?id=abc I tried to use the $id, but in this case, I have a notice with 'undefined variable'. I have the same problem if I try the variable $QUERY_STRING (still undefined variable). Do you know what is the best way to read this parameters? Many thanks Stéphane
-- Scott Houseman Senior Software Developer Junk Mail Publishing (Pty) Ltd T + 27 12 342 3840 ext 2806 F +27 12 342 3876 E [EMAIL PROTECTED] | www.junkmail.co.za A 1312 Pretorius Street, Hatfield, Pretoria P O Box 6574, Pretoria, 0001, South Africa +27 82 491 8021 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php