From: [EMAIL PROTECTED] Operating system: All PHP version: 4.2.3 PHP Bug Type: Session related Bug description: Browser output is not XHTML compliant
I constructed a test site to show my point: http://www.wopr.dk/misc/formproblem.php If you click at the "W3C XHTML 1.1" picture you will see that the site contains one error: "document type does not allow element 'input' here" The input element the validator refers to is this one: <input type="hidden" name="PHPSESSID" value="d509686534734e1c5b1ac66ef2a54c2e" /> The problem is that according to the XHTML standard all input elements should be contained inside a block level element (like in my case a div element). The session engine in PHP puts the session ID tag just after the opening form element. Instead it should look for the first input, textarea etc. element inside the form and put the hidden session input element just before that. Of cause action also has to be taken if no such element is contained inside the form. Look at this link for another description of the problem (not PHP related): http://lists.w3.org/Archives/Public/www-validator/2001Sep/0114.html /watson -- Edit bug report at http://bugs.php.net/?id=20744&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=20744&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=20744&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=20744&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=20744&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=20744&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=20744&r=support Expected behavior: http://bugs.php.net/fix.php?id=20744&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=20744&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=20744&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=20744&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=20744&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=20744&r=dst IIS Stability: http://bugs.php.net/fix.php?id=20744&r=isapi