RE: Problem with inserting form into document

Oleg Barmin <[email protected]>
Newsgroups gmane.comp.cms.lenya.user
Message-ID <[email protected]>
Thanks, Richard. Now it works.
________________________________________
From: Richard Frovarp [[email protected]]
Sent: Friday, September 18, 2009 3:20 PM
To: [email protected]
Subject: Re: Problem with inserting form into document

Oleg Barmin wrote:
> I've tried to add input:
>
> <html>
>     <head>
>         <title>New XHTML document</title>
>     </head>
>     <body>
>         <h1>Send Report</h1>
>         <p>Here comes the text of your new document...</p>
>         <p>To add real content, use one of the editors listed in the <strong>Edit</strong> menu.</p>
>         <form method="post" action="/some/action">
>           <input type="submit" />
>         </form>
>     </body>
> </html>
>
> But I've only got more errors:
>
>     * error: element "input" from namespace "http://www.w3.org/1999/xhtml" not allowed in this context
>     * error: unfinished element

Matt was close. You can't have empty form's, and form elements have to
be in the right containers, which needs to be something more than a
form. Wrap your input in either a p or a div and it should work.

Richard

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.