|
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).
Navigation:
[Reply to this message]
|