use semicolons in php url for $_GET instead of ampersand

Started by manojm, December 28, 2006, 12:14:45 AM

Previous topic - Next topic

manojm

I know how to use the &'s in the php url for get variables and such, but how do i use semicolons instead of the and symbol? just wondering, cuz it looks cooler :D

Dannii

It's also better, because if you use ampersands it breaks xhtml compatibility so you have to use & instead.
Do you want to use it in SMF, or elsewhere?
"Never imagine yourself not to be otherwise than what it might appear to others that what you were or might have been was not otherwise than what you had been would have appeared to them to be otherwise."

SleePy

My Live Site will accept it in urls even when not in SMF. Didn't have to set a thing. My test site I had to set this in the php.ini
arg_separator.input = "&;"
arg_separator.output = "&;"


But you could just use a function to get the query string, Break it up and format it properly.
Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ Libera.chat/#smf ~ Support the SMF Support team!

manojm

Quote from: eldʌkaː on December 28, 2006, 12:37:00 AM
It's also better, because if you use ampersands it breaks xhtml compatibility so you have to use & instead.
Do you want to use it in SMF, or elsewhere?

yeah, you're right, that just came to me, i have to use & every time in XHTML.
I want to use it outside of SMF but it "inspired" me to want to use it =)

Advertisement: