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 #175427 is a reply to message #175426] Thu, 22 September 2011 03:27 Go to previous messageGo to previous message
eBob.com is currently offline  eBob.com
Messages: 11
Registered: August 2011
Karma:
Junior Member
Yes, of course. Thank you PointedEars and Natural Philosopher. Although I
have done a lot of programming in many different languages, I am brand new
to PHP, and this was my first experience of any kind with arrays. It just
wasn't clicking that 'phone' (in my example) was a subscript. I don't think
I've used a language before in which plain ol' arrays can have character
string "subscripts".

Thanks again for the help.

Bob


"Thomas 'PointedEars' Lahn" <PointedEars(at)web(dot)de> wrote in message
news:1888520(dot)Oct5B3EuLq(at)PointedEars(dot)de...
> eBob.com wrote:
> ^^^^^^^^
> You really want to put a real name there. I usually don't talk to
> domains.
>
>> 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.
>
> Think about it: Why does $_GET['phone'] work in the first place?
>
>> Thanks, Bob (a very new noob)
> ^^^^^^^^^^^^^
> Don't.
>
> <http://catb.org/~esr/faqs/smart-questions.html#id478703>
>
>
> PointedEars
> --
> Use any version of Microsoft Frontpage to create your site.
> (This won't prevent people from viewing your source, but no one
> will want to steal it.)
> -- from <http://www.vortex-webdesign.com/help/hidesource.htm> (404-comp.)
[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: Wed Nov 27 21:42:53 GMT 2024

Total time taken to generate the page: 0.06411 seconds