Reply to Re: putting url parameter in array

Your name:

Reply:


Posted by Toby Inkster on 12/11/05 15:08

Jeff wrote:

> How should I access these parameters in url and get them placed in an array?
> I've looked at $_server['query_string'] and $_server['http_host'] and I'm
> NOT sure one of them are the correct one to use...

I think you want $_GET.

On a page "test.php?foo=1&bar=2" then $_GET['foo'] will equal 1 and
$_GET['bar'] will equal 2.

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация