Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #3190
| Message-ID | <1888520.Oct5B3EuLq@PointedEars.de> (permalink) |
|---|---|
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
| Organization | PointedEars Software (PES) |
| Date | 2011-09-21 23:46 +0200 |
| Subject | Re: Names of URL Parameters |
| Newsgroups | comp.lang.php |
| References | <Qbseq.173772$wz.21080@en-nntp-08.dc1.easynews.com> |
| Followup-To | comp.lang.php |
Followups directed to: comp.lang.php
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.)
Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Names of URL Parameters "eBob.com" <eBob.com@totallybogus.com> - 2011-09-21 16:56 -0400
Re: Names of URL Parameters The Natural Philosopher <tnp@invalid.invalid> - 2011-09-21 22:06 +0100
Re: Names of URL Parameters Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2011-09-21 23:46 +0200
Re: Names of URL Parameters "eBob.com" <eBob.com@totallybogus.com> - 2011-09-21 23:27 -0400
Re: Names of URL Parameters "Peter H. Coffin" <hellsop@ninehells.com> - 2011-09-22 07:43 -0500
Re: Names of URL Parameters Richard Damon <news.x.richarddamon@xoxy.net> - 2011-09-22 13:36 -0400
Re: Names of URL Parameters tamouse <tamouse.lists@gmail.com> - 2011-09-28 11:46 -0700
Re: Names of URL Parameters tamouse <tamouse.lists@gmail.com> - 2011-09-28 12:18 -0700
Re: Names of URL Parameters sheldonlg <sheldonlg@thevillages.net> - 2011-09-29 09:15 -0400
csiph-web