General Community > Scripting Help
Passing parameters via the URL
(1/1)
Søren Bjerg:
I'm having a few problems concerning passing parameters via the URL using ';' and '&'.
1) http://www.domain.tld/script.php?param1=var1;param1=var2;param3=var3
- makes validators validate one's HTML successfully, but can't seem to $_GET the parameters.
2) http://www.domain.tld/script.php?param1=var1¶m1=var2¶m3=var3
- makes validators spit out an error message, but can successfully $_GET the parameters.
How would I be able to $_GET the parameters in the first example (using ';')?
I noticed YaBB SE (and SMF too) used that method, but couldn't seem to find out how it was done :(.
Spaceman-Spiff:
--- Quote from: Søren Bjerg on October 10, 2003, 09:43:57 AM ---I'm having a few problems concerning passing parameters via the URL using ';' and '&'.
1) http://www.domain.tld/script.php?param1=var1;param1=var2;param3=var3
- makes validators validate one's HTML successfully, but can't seem to $_GET the parameters.
--- End quote ---
check QueryString.php, check the one from yse 1.4.x or older, they were simpler
--- Quote from: Søren Bjerg on October 10, 2003, 09:43:57 AM ---2) http://www.domain.tld/script.php?param1=var1¶m1=var2¶m3=var3
- makes validators spit out an error message, but can successfully $_GET the parameters.
--- End quote ---
use & so it will validate fine
Søren Bjerg:
--- Quote from: Spaceman-Spiff on October 10, 2003, 12:51:05 PM ---
--- Quote from: Søren Bjerg on October 10, 2003, 09:43:57 AM ---2) http://www.domain.tld/script.php?param1=var1¶m1=var2¶m3=var3
- makes validators spit out an error message, but can successfully $_GET the parameters.
--- End quote ---
use & so it will validate fine
--- End quote ---
Much thanks... don't know why I didn't think of that, probably just thought it would generate the same error, but I now know it doesn't - will just keep to using that method; '&' instead of ';' :).
Navigation
[0] Message Index
Go to full version