From: [EMAIL PROTECTED] Operating system: Linux PHP version: 4.3.0 PHP Bug Type: Session related Bug description: trans_id: Hidden fields placed incorrectly
When using session.use_trans_sid, a hidden input field containing the session name and ID is placed right after the <form> tag. Unfortually, this makes the HTML invalid if you're using XHTML 1.1, strict XHTML 1.0, or strict HTML 4.0: All input fields (even hidden ones) must be placed inside a block-level element such as <div> or <p>. The solution: When the parser discovers a form on the page, it should place the hidden field containing the session name + ID right next to one of the other input fields: The original page: <form action='some.php' method='post'> <div> <input type='text' name='yourName'/> </div> </form> After being processed by the parser: <form action='some.php' method='post'> <div> <input type='hidden' name='PHPSESSID' value='920203'/><input type='text' name='yourName'/> </div> </form> -- Edit bug report at http://bugs.php.net/?id=22070&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=22070&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=22070&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=22070&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=22070&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=22070&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=22070&r=support Expected behavior: http://bugs.php.net/fix.php?id=22070&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=22070&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=22070&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=22070&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22070&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=22070&r=dst IIS Stability: http://bugs.php.net/fix.php?id=22070&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=22070&r=gnused