note 75497 deleted from ref.session by danbrown
| From: | danbrown@php.net | Date: | Sun, 20 Jul 2008 16:38:16 +0000 |
| Subject: | note 75497 deleted from ref.session by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-142188@lists.php.net to get a copy of this message | ||
Note Submitter: spam at chovy dot com
----
Regarding xhtml validation errors with w3c validator:
The problem is the validator doesn't support cookies, so our session_start() mechanism injects
hidden input fields just below all form tags (and in urls).
You need to do two things to pass validation:
1) use fieldsets around *all* input fields (for xhtml 1.0+) to pass validation
2) then, before session_start() change the url_rewriter.tags list of tags to drop form and add
fieldset:
ini_set("url_rewriter.tags", "a=href,area=href,frame=src,fieldset=");
session_start();
You can also set url_rewriter.tags anywhere, (see appendix for php.ini)