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
Re: Names of URL Parameters [message #175425 is a reply to message #175424] Wed, 21 September 2011 21:06 Go to previous messageGo to previous message
The Natural Philosoph is currently offline  The Natural Philosoph
Messages: 993
Registered: September 2010
Karma:
Senior Member
eBob.com wrote:
> 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)

$_GET[] is an array

Look at the manual on how to print a whole array.
[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: Fri Sep 20 02:36:59 GMT 2024

Total time taken to generate the page: 0.12330 seconds