HighDots Forums  

What am I doin wrong with this form?

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss What am I doin wrong with this form? in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
forums.macromedia.com
 
Posts: n/a

Default What am I doin wrong with this form? - 08-06-2004 , 09:06 AM






Hi there,

I have a form I am using in a strict doc type and am getting a couple of
validation errors:

This is the simple form:

<h5>Search</h5>
<form id="searchform" method="get" action="<?php echo $PHP_SELF; ?>">
<input type="text" name="s" id="s" size="15" />
<input type="submit" name="submit" value="<?php _e('Search'); ?>" />
</form>


a.. Line 175, column 47: 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

<input type="text" name="s" id="s" size="15" />

The mentioned element is not allowed to appear in the context in which
you've placed it; the other mentioned elements are the only ones that are
both allowed there and can contain the element mentioned. This might mean
that you need a containing element, or possibly that you've forgotten to
close a previous element.

One possible cause for this message is that you have attempted to put a
block-level element (such as "<p>" or "<table>") inside an inline element
(such as "<a>", "<span>", or "<font>").



a.. Line 176, column 52: 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

<input type="submit" name="submit" value="Search" />

What might I be doing wrong?



Thanks



Reply With Quote
  #2  
Old   
robot88888888
 
Posts: n/a

Default Re: What am I doin wrong with this form? - 08-06-2004 , 10:32 AM






Do you have a link?

"forums.macromedia.com" <michell (AT) colby (DOT) net> wrote

Quote:
Hi there,

I have a form I am using in a strict doc type and am getting a couple of
validation errors:

This is the simple form:

h5>Search</h5
form id="searchform" method="get" action="<?php echo $PHP_SELF; ?>"
input type="text" name="s" id="s" size="15" /
input type="submit" name="submit" value="<?php _e('Search'); ?>" /
/form


a.. Line 175, column 47: 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

input type="text" name="s" id="s" size="15" /

The mentioned element is not allowed to appear in the context in which
you've placed it; the other mentioned elements are the only ones that are
both allowed there and can contain the element mentioned. This might mean
that you need a containing element, or possibly that you've forgotten to
close a previous element.

One possible cause for this message is that you have attempted to put a
block-level element (such as "<p>" or "<table>") inside an inline element
(such as "<a>", "<span>", or "<font>").



a.. Line 176, column 52: 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

input type="submit" name="submit" value="Search" /

What might I be doing wrong?



Thanks





Reply With Quote
  #3  
Old   
Michael Fesser
 
Posts: n/a

Default Re: What am I doin wrong with this form? - 08-06-2004 , 01:33 PM



.oO(forums.macromedia.com)

Quote:
I have a form I am using in a strict doc type and am getting a couple of
validation errors:

This is the simple form:

h5>Search</h5
form id="searchform" method="get" action="<?php echo $PHP_SELF; ?>"
input type="text" name="s" id="s" size="15" /
input type="submit" name="submit" value="<?php _e('Search'); ?>" /
/form


a.. Line 175, column 47: 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
[...]

What might I be doing wrong?
Form controls are inline-level elements, but the form-element only
allows block-level content like p, div, table etc.

Possible solution:

<form id="searchform" method="get" action="<?php echo $PHP_SELF; ?>">
<p>
<input type="text" name="s" id="s" size="15" />
<input type="submit" name="submit" value="<?php _e('Search'); ?>" />
</p>
</form>

HTH
Micha


Reply With Quote
  #4  
Old   
forums.macromedia.com
 
Posts: n/a

Default Re: What am I doin wrong with this form? - 08-06-2004 , 03:49 PM



Thanks Micha,

That is a gret help



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.