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

recovering parameters passed with URL on the receiving PHP end

P: n/a
aa
If I pass parameters to a PHP script in URL like

..php?a=aa&b=bb
how do I recover them on the receiving PHP end?
I looked at the list of PHP Variables using phpinfo() and found nothing
suitable
Jul 17 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
I noticed that Message-ID:
<41***********************@ptn-nntp-reader02.plus.net> from aa contained
the following:
If I pass parameters to a PHP script in URL like

.php?a=aa&b=bb
how do I recover them on the receiving PHP end?
I looked at the list of PHP Variables using phpinfo() and found nothing
suitable


aa will be in the superglobal variable $_GET['a']

bb will be in the superglobal variable $_GET['b']
--
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/
Jul 17 '05 #2

P: n/a
Geoff Berrow wrote:
aa will be in the superglobal variable $_GET['a']

bb will be in the superglobal variable $_GET['b']


And the entire query string will be in:

$_SERVER['QUERY_STRING']
JW

Jul 17 '05 #3

P: n/a
aa wrote:
If I pass parameters to a PHP script in URL like

.php?a=aa&b=bb
how do I recover them on the receiving PHP end?
I looked at the list of PHP Variables using phpinfo() and found nothing
suitable


Request parameters will only show in output if parameters are present
when you use phpinfo. If you did, then look again. They *are* there.

/Bent
Jul 17 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.