Re: Multiple HTTP variables of the same name
| From: | davis | Date: | Wed, 22 Nov 2000 04:32:27 +0000 |
| Subject: | Re: Multiple HTTP variables of the same name | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-4637@lists.php.net to get a copy of this message | ||
try
http://...../php.html?site[]=1&site[]=2&site=[]3&question[]=6&question[]=7
you will get $site=array(1,2,3) and question=array(6,7)
"John Hockaday" <johnh@erin.gov.au> wrote in message
news:200011010354.OAA09749@eos.erin.gov.au...
| Hi,
|
| Thanks to all who responded to my email about connecting to a remote
| Oracle 8.i database. I can now connect to the database, extract
| records and build an HTML table for presentation on the WWW browsers.
|
| I was looking at how to read HTML form variables and I found the
| "$HTTP_GET_VARS", which seemed to be the right one, but it doesn't seem
| to allow multiples of the same named query parameter.
|
| For example, an HTTP GET method like this:
|
| http://...../php.html?site=1&site=2&site=3&question=6&question=7
|
| gives site=3 and question=7 in the PHP script that is called. ie,
| php.html.
|
| Is there some way of getting multiple query parameters of the same
| name?
|
|
| Johnh
|
|
| --
| PHP Database Mailing List (http://www.php.net/)
| To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net
| For additional commands, e-mail: php-db-help@lists.php.net
| To contact the list administrators, e-mail: php-list-admin@lists.php.net
|