could someone tell me what this query string should look like im trying to multiple elemnts with the same variable
?firstname=name1,name2,name3
or
?firstname=name1;name2;name3
?firstname=name1 name2 name3
?firstname=name1&secondname=name2&thirdname=name3
I'm going to make a wild guess that by "query string" you are referring to a SQL query. I believe most databases would use this syntax:
WHERE $firstname IN ('name1', 'name2', 'name3')
A query string is a get variable. For example:
http://www.phpbuilder.com/board/newreply.php?s=&action=newreply&threadid=10218111
This is a query string that sets $action to newreply, $threadid to 10218111, and $s to "".
I don't know about assigning multiple values to a single variable. Why not just try to find a way to use multiple variables?
Thanks. I always just called them request parameters.
As far as putting multiple values in one variable I don't know of any standard. You build and parse the string however you like. In Perl the CGI.pm module does it for you, but I don't know of a similar module in php.