Reply to Re: Why doesn't this form validate ?

Your name:

Reply:


Posted by cwdjrxyz on 10/14/06 15:48

Arjen wrote:
> > I will leave it to others to explain in detail why your form had
> > validation problems - there were several error messages in fact.
> > However see http://www.cwdjr.info/test/formtest.html for a modified
> > version of your test page that does validate at W3C as xhtml 1.0
> > strict.
>
> Cool thx ! <div><form><p>stuf</p></form</div> :-)
>
>
> > You may need to reformat it a bit to display exactly as you
> > wish on the page. Note that the validator is much more strict for a
> > xhtml page than a html 4.01 strict page, and you often can get away
> > with much more in html without validator error messages. Are you
> > actually planning to serve the page as true xhtml, with your server set
> > up with perhaps .xhtml associated with the mime type
> > application/xhtml+xml ?
>
> Actually all files will have the php extention. Im letting a friend do
> the server settings so I really dont know about the server associated
> mime type. The framework generates most stuf automatically in xhtml
> strict. That's why I try to use it. I guess I can send the output buffer
> thru another template wich will output html 4.01

To tell how a page is servered, go to the W3C validator and select the
extended interface. Then check the "show source" and "verbose output"
boxes. Enter the page URL and validate. Near the top of the page you
will see Content-type. For an html page you get text/html; for xhtml
you get application/xhtml+xml; for an xml page you get application/xml.
This is how the page is actually served. Now test the page I gave you
in a previous post served as .html. Next test the page
http://www.cwdjr.info/test/formtestXML.xml that is served as xml by
setting the mime type for application/xml for the extension .xml on the
server. Next test the page http://www.cwdjr.info/test/formtestX.xhtml
that is served by setting the mime type for application/xhtml+xml on
the server to correspond to the extension .xhtml.

Now try the mentioned pages on recent Mozilla family browsers(Firefox,
Mozilla, Netscape, Mozilla) and Opera. All 3 pages work. Then try the 3
pages on IE6. The page works only when served as .html. The pages
served as .xhtml or .xml can not be handled. In this case you just get
the source code displayed on IE6. In other cases you get an error
message on IE6.

A page with the .php extension will get served as usually one of the 3
types mentioned above and the content-type on extended interface
validation at the W3C will tell you how the php page is being served.

If a page views properly on IE6, it is not being served as true xhtml
or xml.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация