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

Can URL parms be passed to a PHP script?

P: n/a
Don
Will the following pass parms "Color" and "Contrast" to the PHP script? If so, how does one
retrieve the parms within the script?

http://xyz.com/script.php?Color=blue&Contrast=weak

Thanks,
Don
-----------== Posted via Newsfeed.Com - Uncensored Usenet News ==----------
http://www.newsfeed.com The #1 Newsgroup Service in the World!
-----= Over 100,000 Newsgroups - Unlimited Fast Downloads - 19 Servers =-----
Jul 17 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Don wrote:
Will the following pass parms "Color" and "Contrast" to the PHP
script? If so, how does one retrieve the parms within the script?

http://xyz.com/script.php?Color=blue&Contrast=weak


$_GET['Color'] or $_REQUEST['Color']

and there's also $_POST for stuff posted in a form.

Refer to http://www.php.net/manual/en/languag...s.external.php
for more information.

--
Chris Hope - The Electric Toolbox - http://www.electrictoolbox.com/
Jul 17 '05 #2

P: n/a
Don
On Tue, 21 Dec 2004 22:30:46 +1300, Chris Hope <bl*******@electrictoolbox.com> wrote:
Don wrote:
Will the following pass parms "Color" and "Contrast" to the PHP
script? If so, how does one retrieve the parms within the script?

http://xyz.com/script.php?Color=blue&Contrast=weak


$_GET['Color'] or $_REQUEST['Color']

and there's also $_POST for stuff posted in a form.

Refer to http://www.php.net/manual/en/languag...s.external.php
for more information.

Thanks Chris. I'll give it a try.
Sorry about all the posts. I'm having trouble with my news reader.

Don
-----------== Posted via Newsfeed.Com - Uncensored Usenet News ==----------
http://www.newsfeed.com The #1 Newsgroup Service in the World!
-----= Over 100,000 Newsgroups - Unlimited Fast Downloads - 19 Servers =-----
Jul 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.