News:

Wondering if this will always be free?  See why free is better.

Main Menu

The forum url

Started by Makochild, September 12, 2006, 09:49:26 PM

Previous topic - Next topic

Makochild

this is something i was curious about...

I noticed that there are semicolons when a second variable in a URL (i.e. index.php?action=mlist;sort=registered;start=0)

How did is this done? I noticed its much cleaner than use the &


Dannii

& shouldn't be used in xhtml because it indicates an entity.
"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."

codenaught

It appears it is the cleanRequest() function in Sources/QueryString.php that does this.
Dev Consultant
Former SMF Doc Coordinator

Makochild

crap, thought it was gonna be something easy to incorporate into another script. thanks

SleePy

Your site might take ;

I use ; in my scripts now that I seen smf does it. works just fine....
Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ Libera.chat/#smf ~ Support the SMF Support team!

Makochild

Quote from: SleePy on September 13, 2006, 07:06:29 PM
Your site might take ;

I use ; in my scripts now that I seen smf does it. works just fine....

can you show me how you did it? or did you just put it in a link.

SleePy

I just used them as hyperlinks.. and my php converts it for me.

You might have to change your php.ini to let it work.. Oddly its not in my php.ini but it still works

arg_separator.input = "&;"
arg_separator.output = "&;"

I belive thats the correct syntax...
Note:  Every character in it besides " is considered as separator!
Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ Libera.chat/#smf ~ Support the SMF Support team!

Advertisement: