There is an issue with session generation through a web form and validation. Automatically creating a session that is to be passed through a POST creates a hidden input field directly after the first form tag. Since in XHTML, a <form> requires that a block level element (like fieldset) enclose it's content, the auto session id creation violates this, and your page won't validate.

Here's how to fix it: http://martin.f2o.org/php/session

-Noa



Mordechai Peller writes:

Steven Clark wrote:

Mmm, interesting.The validator can't see the php, I know, but pull the php off the page and it validates as strict, while put it on the page and it doesn't! Cut and paste the code off the page for yourself into a blank page and run it, you'll see it validates perfectly. Its the processing of the form that is triggering problem.

The PHP portion of the document gets replaced with whatever you program the output to be. If that output is causing the page to be invalid, it's the programmer's fault, not PHP's.
******************************************************
The discussion list for http://webstandardsgroup.org/


Proud presenters of Web Essentials 04 http://we04.com/
Web standards, accessibility, inspiration, knowledge
To be held in Sydney, September 30 and October 1, 2004


See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
******************************************************



****************************************************** The discussion list for http://webstandardsgroup.org/

Proud presenters of Web Essentials 04 http://we04.com/
Web standards, accessibility, inspiration, knowledge
To be held in Sydney, September 30 and October 1, 2004

See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
******************************************************



Reply via email to