View Full Version : passing multiple get variables
davehaz
07-11-2005, 04:28 PM
howdy, I need to pass some variables from one page to another such as
http://www.mysite.com?sname=$var,$sphone=$var2
they all keep coming up in sname, how do you separate multiple variables?
tia.
delinear
07-11-2005, 04:29 PM
After the first ? use & to separate the variables:
http://www.mysite.com?sname=$var&$sphone=$var2
NancyJ
07-11-2005, 04:30 PM
http://www.mysite.com?sname=$var&$sphone=$var2
//if you're bothered about validations use & instead of &
SeeIT Solutions
07-11-2005, 04:30 PM
& instead of ,
that uses an ampere
NancyJ
07-11-2005, 04:31 PM
can we get a record for the most people answering the same question simultaneously? ;)
Fou-Lu
07-11-2005, 07:17 PM
& instead
;)
Seariously though, you can use whatever you want, just make sure its either stated within your php.ini, or set it using:
ini_set(arg_separator.input, '&,');
for instance.
And of course, validation of XHTML compliancy forces you to use & instead of &.
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.