John is absolutely correct (as usual). If you want more information, go to Google and look up things like "PHP variable passing". I did and the very first result was this: http://www.indiwiz.com/web/ServerSide/59 and it has a simple, clear explanation of variable passing in the URL. You can also check the PHP-DB or PHP-GENERAL mailing list archives for posts on this subject; I know there's a wealth of information in there. And, as John said, pay attention to your PHP version and register_globals directive. Goog luck. Rich > -----Original Message----- > From: John W. Holmes [mailto:holmes072000@charter.net] > Sent: Thursday, May 01, 2003 9:18 AM > To: 'Kieu D. Trang'; php-db@lists.php.net > Subject: RE: passing variables to a link and to a query... > > > > I am trying to pass varibles to a link which later on will be passed > to a > > query and to MySQL db. But for some reason the variables is not > passed > > correctly, would any one happen to know a good source to read up on > this > > topic? Please help. Thanks in advance.... > > What version of PHP are you using? With the latest, when you > have a link > such as > > Page.php?id=1 > > Then you can get the value of "id" by using the variable: $_GET['id'] > > Echo $_GET['id']; > > If you're just trying to echo $id and it's not working, > that's probably > because the register_globals setting in your php.ini file is > set to OFF. > > ---John W. Holmes... > > PHP Architect - A monthly magazine for PHP Professionals. Get > your copy > today. http://www.phparch.com/ > > > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php