Forum Moderators: coopster

Message Too Old, No Replies

Specifing a QUERY STRING from 2 QS

I Have 2 QUERY_STRINGs in a URL and want to print only one of them

         

asson

12:00 am on Jun 14, 2008 (gmt 0)

10+ Year Member



Hi,
I have a URL with 2 queries like this,
?page=contact&dep=Billing

And somewhere on the page it self I want to print out the $dep query.
I have used $_SERVER[QUERY_STRING]; but it prints both queries.

How to skip the first one?

Thanks in advance.

rob7591

12:13 am on Jun 14, 2008 (gmt 0)

10+ Year Member



Can't you do:

echo "dep=$_GET[dep]";

?

webfoo

12:43 am on Jun 14, 2008 (gmt 0)

10+ Year Member



What's wrong with

echo $_REQUEST['dep'];

asson

7:45 am on Jun 14, 2008 (gmt 0)

10+ Year Member



Hi,
Thank you very much, the first one worked fine.
Really appreciate your help.

I'm not a coder, so easy stuff can be hard to code ;)