Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!takemy.news.telefonica.de!telefonica.de!newsfeed.arcor.de!newsspool4.arcor-online.net!news.arcor.de.POSTED!not-for-mail Content-Type: text/plain; charset="ISO-8859-1" Message-ID: <1888520.Oct5B3EuLq@PointedEars.de> From: Thomas 'PointedEars' Lahn Reply-To: Thomas 'PointedEars' Lahn Organization: PointedEars Software (PES) Date: Wed, 21 Sep 2011 23:46:18 +0200 User-Agent: KNode/4.4.11 Content-Transfer-Encoding: 7Bit Subject: Re: Names of URL Parameters Newsgroups: comp.lang.php References: Followup-To: comp.lang.php MIME-Version: 1.0 Lines: 31 NNTP-Posting-Date: 21 Sep 2011 23:46:18 CEST NNTP-Posting-Host: 53edb192.newsspool2.arcor-online.net X-Trace: DXC=UC_T]N4VIc]aoembcbF;DQA9EHlD;3YcR4Fo<]lROoRQ8kF I know that I can get and print the value of a URL parameter this way ... > > echo '

phone: ' . $_GET['phone'] . '

'; > > ... 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. 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 (404-comp.)