By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,890 Members | 1,050 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,890 IT Pros & Developers. It's quick & easy.

Array of passed variables

P: n/a
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
Share this Question
Share on Google+
2 Replies


P: n/a
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

P: n/a
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.