note 63800 deleted from function.session-start by bjori

From: Date: Sun, 16 Apr 2006 00:40:07 +0000
Subject: note 63800 deleted from function.session-start by bjori
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-108236@lists.php.net to get a copy of this message
Note Submitter: firestorm213 at hotmail dot com ---- If you're interested in creating XHTML 1.0 Strict validating pages, using sessions creates a problem. If you output a form, a hidden field containing the PHPSESSID variable is automatically placed in there, ending up looking something like this # <form style="width: 210px; margin-left: auto; margin-right: auto; margin-bottom: 4px; text-align: left;" method="post" action=""><input type="hidden" name="PHPSESSID" value="5eeec5d775e66e46a656c0e64216d2d6" /><div> # Name:<br /> # <input name="nickname" id="nickname" type="text" ... Now, XHTML requires there to be a <div> or some containing tag before any input tags, so this won't validate. I haven't found a workaround for this, because I'm not that great a PHP hacker, nor do I like messing around with source that large anyway. Using XHTML 1.0 Transitional will allow your page to validate.

« previous php.notes (#108236) next »