Hi all,

enable_trans_sid in the PHP ini has given me no grief to date, but now I'm working towards XHTML 1.0 Strict, and PHP seems to fall over when dealing with forms.

It seems to put an extra (hidden) form element straight after the <form...> tag, and the W3 validator doesn't like it. I've also confirmed this by validating an otherwise empty form. It appears that inputs need to be wrapped in some kind of block level element (like a div or p) to validate. I can manually wrap my form elements in a div, but cannot do the same for PHP's auto-generated hidden element for the SID. It even says "if you want XHTML conformity, remove the form element" in php.ini

So, one option is to exclude form= from the list or rewrite tags in php.ini, but this places a burden on the developers and writers to manually do this.

Option 2 I had *hoped* would be for the action='' attribute of a form tag to be re-written rather than a hidden form element being added, but I haven't been able to get this to work.


Can anyone offer a solution?
Has this feature been requested before, or is it likely to be included in PHP 5?



Justin French


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to