[thelist] PHP and problem validating XHTML strict page

Dmytro Borovsky thelist at web-artel.net
Fri Jul 5 18:33:01 CDT 2002


> <form id="FormName" action="http://www.rmh-d.com"
> method="post"><input type="hidden" name="PHPSESSID"
> value="4618317f1fa2867d08672cfed847911c" />
> [does not validate]

Form element may contain ONLY block-level elements (such as h*, p, div)
except the form element itself, and script elements.

http://www.w3.org/TR/1998/REC-html40-19980424/interact/forms.html#edef-F
ORM

So the problem is not because of id absence, or case, or anything else.
It's only because the input (inline-level element) is not contained
directly in the form element.

<tip type="Form Syntax" author="Dmytro Borovsky">

A form element can contain only block-level elements.
Any inline-level elements must be included into a block-level element.

(Example: input is included into div:
<div><input /></div>
)

</tip>

Have a nice day.

Dmytro Borovsky.




More information about the thelist mailing list