Re: XML compliance with forms and trans_sid when using sessions

From: Date: Thu, 21 Feb 2002 22:11:39 +0000
Subject: Re: XML compliance with forms and trans_sid when using sessions
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-85780@lists.php.net to get a copy of this message
Lars Torben Wilson wrote:
On Thu, 2002-02-21 at 09:45, James Nord wrote:
Hi, How do I get PHP to output an HTML tag instead of and XML tag when using trans_sid and a form in PHP. (eg) php outputs <input type="hidden" name="sessionName" value="sessionID" /> but I don't want the trailing / /James
I already told you how in the bug system: use output buffering to catch the output and remove the slash. Hmm I didn't get an email copy of your reply and I was expecting one :-/
But you'd be *breaking* compliance with this. Yes you are right about the HTML conformance my bad.
But I would only be breaking conformance for XHTML/XML output - which I'm not using in any case. As you point out HTML can "take it or leave it" Unfortunatly I know some that need to leave it.
If you would state exactly what the problem with the slash being there is, perhaps we could help you. The HTML renderer that comes with Java (jfc) renders the '>' due to the '/' being before it. There may well be others (or older browser versions too) that choke on it .
Oh well - output buffers it is then... /James -- Technology is a word that describes something that doesn't work yet. Douglas Adams

« previous php.general (#85780) next »