|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-02-05 09:16 UTC] magnus@php.net
[2003-02-05 16:01 UTC] sniper@php.net
[2003-02-09 15:36 UTC] node at nodefall dot de
[2003-02-09 16:00 UTC] sas@php.net
[2003-02-10 12:25 UTC] node at nodefall dot de
[2004-09-29 14:00 UTC] zhou140 at yahoo dot com dot cn
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 06:00:02 2025 UTC |
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>