Pulling Variables from URL

From: Date: Wed, 20 Feb 2002 22:08:03 +0000
Subject: Pulling Variables from URL
Groups: php.general 
Request: Send a blank email to php-general+get-85613@lists.php.net to get a copy of this message
Is there an easy way to pull all the variables after the URL? Let use say that the page I am looking at is this. www.somewhere.com/pages.php?id=27&color=red&bgcolor=green Now on the page I want a link to have the 3 variables from above. I know I can do this. <a href="another_page.php?id=<?php echo $id ?>&color=<?php echo $color ?>&bgcolor=<?php echo $bgcolor ?>">Click Here</a> But I am wondering if there is a basica funciton or call I can use to pull all the values and variables. So the code might be as simple as <a href="another_page.php?<?php call_to_some_function(); ?>">Click Here</a> And get the same result. Thanks all Phillip

« previous php.general (#85613) next »