|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2001-09-28 04:12 UTC] mat at dioxine dot com
When enabling trans-id, php rewrites the forms to add an input type=hidden. the problem is that, in xhtml strict, inputs have to be in a fieldset element. when a fieldset element is already here, php still writes the input type=hidden before the fieldset, causing the page to be invalid html. reproducing is easy : <?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>PHP Bug with forms and sessions</title> </head> <body> <form action="blabla.php"><fieldset><input type="submit" value="test" /></fieldset></form></body></html> its valid html, but php will, with transid, make it invalid by putting this input between the form and the fieldset... PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 05:00:01 2025 UTC |
I've tried using the following: ini_set("url_rewriter.tags", "a=href,area=href,form=action"); However, now get the session BOTH in the action and in a fake entry. Any suggestions?