php-general | 2001072
Date: 07/26/01
- Next message: php-general <email protected>: "[PHP] Teen Hobos having sex? ..no.. but MAYBE"
- Previous message: Brian White: "Re: [PHP] parser outside of web tree. whats the trick?"
- In reply to: A: "[PHP] Query String Name ?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 <email protected>
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe <email protected> For additional commands, e-mail: php-general-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: php-general <email protected>: "[PHP] Teen Hobos having sex? ..no.. but MAYBE"
- Previous message: Brian White: "Re: [PHP] parser outside of web tree. whats the trick?"
- In reply to: A: "[PHP] Query String Name ?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

