Reply to Re: Validation problems with auto-inserted input

Your name:

Reply:


Posted by Mitja Trampus on 10/06/05 19:38

Jonathan wrote:
> Error Line 71 column 153: document type does not allow element "input"
> here; missing one of "p", "h1", "h2", "h3", "h4", "h5", "h6", "div",
> "pre", "address", "fieldset", "ins", "del" start-tag.
>
> [php]
> print "<form method=\"post\"
> action='guestbook.php?guestbook=$guestbook;'>";
> [auto-insert of input element seems to be occurring here]
> print "<table style=\"width:100%;\">";
> ...
> print "</table>";

What the validator is saying is you can't have form elements
directly inside a form. So
<form> <input> </form>
is wrong while
<form> <p> <input> </p> </form>
or
<form> <div> <input> </div> </form>
is fine (that's the "missing one of..." part of the error msg).

[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

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