> Benny Pedersen wrote: > > >how do i get var from a url like this one > > > >http://localhost/index.php?sort=name&var2=login > > > > > > In index.php: > > echo $sort; > echo $var2;
And if you're wondering why that doesn't work (if it doesn't), then try echo $_GET['sort']; echo $_GET['var2']; and read up on the "register_globals" setting in your php.ini file. ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php