[PHP] Pulling Variables from URL

2002-02-20 Thread Phillip S. Baker
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=27color=redbgcolor=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

Re: [PHP] Pulling Variables from URL

2002-02-20 Thread Steve Werby
Phillip S. Baker [EMAIL PROTECTED] wrote: 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=27color=redbgcolor=green Now on the page I want a link to have the 3 variables from above. I know I can

Re: [PHP] Pulling Variables from URL

2002-02-20 Thread Phillip S. Baker
phpinfo(); is your friend. Insert into a PHP script which has a query string (the part of the URL after the ?) and look at the environment variables available and listed in the output generated by phpinfo(). The variable you're looking for is $QUERY_STRING, but you really should get familiar

Re: [PHP] Pulling Variables from URL

2002-02-20 Thread Steve Werby
Phillip S. Baker [EMAIL PROTECTED] wrote: Thanks that is what I needed. I am starting to learn more about phpinfo. Is there a really good place that documents all the options and variables and such? You can find info about the environment variables and PHP variables in the PHP manual and