Forums / Developer / Hidden eZSESSID form fields causes invalid XHTML 1.0 STRICT

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

Hidden eZSESSID form fields causes invalid XHTML 1.0 STRICT

Author Message

Eirik Alfstad Johansen

Friday 01 April 2005 2:58:54 am

Hi,

The hidden form fields containing the session ID causes validation errors for the XHTML 1.0 STRICT doctype, ref: http://validator.w3.org/check?uri=http%3A%2F%2Fwww.netmaking.no%2F3.5.1%2Findex.php%2Fnetmakin&charset=%28detect+automatically%29&doctype=%28detect+automatically%29&ss=1#line-105

This due to the fact that the hidden field needs to be surrounded by one of the following elements:

"p", "h1", "h2", "h3", "h4", "h5", "h6", "div", "pre", "address", "fieldset", "ins", "del"

So my question is this: Is the hidden form field inserted by PHP or eZP and, if by eZP, where can I modify the HTML code so that it can be surrounded by one of the mentioned elements?

Thanks in advance !

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

bisk

Friday 01 April 2005 3:25:25 am

I had a quick look at the validation link you provided. There is already a fieldset surrounding the hidden fields. But one hidden field is twice in the code, one before fieldset and one after, remove the first from the template (the name=eZSESSIDnetmakin input field) and I think it should validate.

-------------------------------
http://www.kookfijn.nl & http://www.magento.be

Eirik Alfstad Johansen

Friday 01 April 2005 3:43:23 am

Hi bisk,

Thanks for your reply, bisk. Actually, what you saw was me half way to fixing the problem (which I've now managed to fix entirely).

What was causing it was a combination of an anchient PHP bug (http://bugs.php.net/bug.php?id=13472), and the form fields being surrounded by div tags instead of fieldset tags.

I solved the problem by replacing the divs with fieldsets, and putting the following into my .htaccess file:

<IfModule mod_php4.c>
   php_value url_rewriter.tags "a=href,area=href,frame=src,fieldset=fakeentry"
</IfModule>

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/