FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Names of URL Parameters
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Names of URL Parameters [message #175424] Wed, 21 September 2011 20:56 Go to previous message
eBob.com is currently offline  eBob.com
Messages: 11
Registered: August 2011
Karma:
Junior Member
I know that I can get and print the value of a URL parameter this way ...

echo '<p>phone: ' . $_GET['phone'] . '</p>';

.... and that works fine of course. But what if I don't know the names of
all the parameters and just want to print out the names and values of all
the parameters? (It might not seem to make a lot of sense, but it would be
useful to me in experimenting/developing/debugging.)

It looks like (I haven't tried it) $_SERVER['QUERY_STRING'] would give me
the entire URL but I'd really rather not have to parse it.

Thanks, Bob (a very new noob)
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: best editor
Next Topic: discussing LeBron 8 PS
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Nov 10 05:05:47 GMT 2024

Total time taken to generate the page: 0.04763 seconds