Re: Query String Name ?
| From: | Brian White | Date: | Fri, 27 Jul 2001 00:14:28 +0000 |
| Subject: | Re: Query String Name ? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-59847@lists.php.net to get a copy of this message | ||
In PHP, if you set the input fields to be array names then all the results get put in an
array:
So: test.php?name[]=joe&name[]=bob
would create an array("joe", "bob" ) in PHP.
If you really can't set it in the form you could access the QUERY_STRING environment
variable and parse it directly.
At 11:14 26/07/2001 +0100, A wrote:
Hi there, is there any way to access two variables in a query string that have the same name e.g test.php?name=joe&name=bob Is there any way to extract both values of name without changing the way the query string is created? Thanks, Abe------------------------- Brian White Step Two Designs Pty Ltd - SGML, XML & HTML Consultancy Phone: +612-93197901 Web: http://www.steptwo.com.au/ Email: bwhite@steptwo.com.au