470,815 Members | 1,337 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,815 developers. It's quick & easy.

Array of passed variables

I have a search page within an application I'm developing. The search page
could have over a dozen variables passed to it, not through a POST or GET,
just through the URL. Is there something as handy as $HTTP_POST_VARS that
can be used to cycle through the passed to the page?
If PHP is compiled with the CLI, the ARGV and ARGC is available, but what
if it PHP isn't compiled that way?

--
Mike Discenza

Jul 16 '05 #1
2 2100
On Thu, 31 Jul 2003 14:14:16 +0000, Mike Discenza wrote:
I have a search page within an application I'm developing. The search page
could have over a dozen variables passed to it, not through a POST or GET,
just through the URL. Is there something as handy as $HTTP_POST_VARS that
can be used to cycle through the passed to the page?


Errr, if the variables are passed via the URL they ARE GET variables. Use
$_GET.

Cheers,
Andy
Jul 16 '05 #2
Mike Discenza wrote:
I have a search page within an application I'm developing. The search
page could have over a dozen variables passed to it, not through a POST or
GET, just through the URL.


If you are talking about URLs of the form
http://www.example.com/foo?var=val, then that is what is known as GET. Use
the $_GET superglobal.

--
Jim Dabell

Jul 16 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Joel Farris | last post: by
7 posts views Thread by Federico G. Babelis | last post: by
11 posts views Thread by Sontu | last post: by
5 posts views Thread by Chuck Anderson | last post: by
7 posts views Thread by Jim Carlock | last post: by
4 posts views Thread by Cerebral Believer | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.