XHTML and PHP

It doesn't matter if you do all the error checking in the world, or if you have the most beautiful graphics, if your site or application design isn't usable, it's not going to do well. Get input and advice on usability and user interface issues here.

Moderator: General Moderators

XHTML and PHP

Postby onion2k » Wed Feb 09, 2005 4:21 pm

The W3C html validator is complaining about my website not being XHTML strict due to the "&" characters in urls not being "&". Fair enough. However, the "&"s in question are being inserted by PHP as index.php?v=1&PHPSESSID=jkdnjdnnasdjnasdjnadjknjndjk.. How do I make PHP put in valid xhtml without resorting to output buffering?

The offending W3C validation: http://validator.w3.org/check?verbose=1 ... .ooer.com/
User avatar
onion2k
Jedi Mod
 
Posts: 5263
Joined: Tue Dec 21, 2004 6:03 pm
Location: usrlab.com

Postby feyd » Wed Feb 09, 2005 4:42 pm

turn off trans_sid and perform the sessiond id addition yourself...
User avatar
feyd
Neighborhood Spidermoddy
 
Posts: 31559
Joined: Mon Mar 29, 2004 4:24 pm
Location: Bothell, Washington, USA

Postby timvw » Wed Feb 09, 2005 6:32 pm

; The separator used in PHP generated URLs to separate arguments.
; Default is "&".
arg_separator.output = "&"
timvw
DevNet Master
 
Posts: 4897
Joined: Tue Jan 20, 2004 12:11 am
Location: Leuven, Belgium

Postby feyd » Wed Feb 09, 2005 6:53 pm

I was searching for that when looking for a solution to the issue.. I know I've seen it before, but just didn't see it anywhere.. oh well. :)
User avatar
feyd
Neighborhood Spidermoddy
 
Posts: 31559
Joined: Mon Mar 29, 2004 4:24 pm
Location: Bothell, Washington, USA

Postby onion2k » Wed Feb 09, 2005 7:26 pm

Cool. Cheers. I've actually fixed it by switching the session stuff off as the site isn't actually using sessions anywhere. Curse of the standard include library..

XHTML 1.0 compliant now. Woo! Plus WAI-AA, Bobby AAA, and Section 508 approved.. Not too shabby if I say so myself.
User avatar
onion2k
Jedi Mod
 
Posts: 5263
Joined: Tue Dec 21, 2004 6:03 pm
Location: usrlab.com

Postby wwwapu » Mon Feb 14, 2005 11:09 am

Imagine two elderly 19th century English aristocrats with mustache and monocles sitting on veranda of some mansion. Having tea, naturally.
The Aristocrat 1 (ar1) asks the other (ar2):
ar1: "How are the coalmines today? If I may ask."
ar2: "Well, they could be better. I hear they hit a very rich goldvein early this morning. It makes it harder to mine decent coal down there, now doesn't it"
ar1 (nods just visibly): "I suppose it does"

That slight approving nod I'm giving to you right now.
User avatar
wwwapu
Forum Contributor
 
Posts: 197
Joined: Wed Apr 07, 2004 11:57 am
Location: Turku, Finland


Return to UI Design/Usability

Who is online

Users browsing this forum: No registered users and 1 guest