HTML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignHTML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old May 6th, 2008, 08:22 AM
mevaser mevaser is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2007
Posts: 5 mevaser User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 9 m 42 sec
Reputation Power: 0
Unhappy Validation problem (Form)

Hello every one, thanks for your help before hand,

I have validating my own website, so far so good, but I have this problem. I can not figure out why is not validating, the problem lies on this second line of code: <input type="hidden" name="cfgId" value="1" />

So part of the form looks like this:

<form action="/cgi-bin/ssecure/ssecure.pl" method="post" enctype="multipart/form-data">
<input type="hidden" name="cfgId" value="1" />

The Error message for validation says this:

Validation Output: 1 Error
Line 152, Column 49: 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="hidden" name="cfgId" value="1" />


<input type="hidden" name="cfgId" value="1" />

The last haracter ">" of this last line are in RED. Then it says:

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>").


------------------------------------------------------------------------

The question, what is that I am doing wrong?

Thanks,

Reply With Quote
  #2  
Old May 6th, 2008, 09:25 AM
GameYin GameYin is offline
Banned
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jan 2008
Location: Whiteford, MD
Posts: 534 GameYin User rank is First Lieutenant (10000 - 20000 Reputation Level)GameYin User rank is First Lieutenant (10000 - 20000 Reputation Level)GameYin User rank is First Lieutenant (10000 - 20000 Reputation Level)GameYin User rank is First Lieutenant (10000 - 20000 Reputation Level)GameYin User rank is First Lieutenant (10000 - 20000 Reputation Level)GameYin User rank is First Lieutenant (10000 - 20000 Reputation Level)GameYin User rank is First Lieutenant (10000 - 20000 Reputation Level)GameYin User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 4 Days 23 h 22 m 54 sec
Warnings Level: 5
Reputation Power: 0
Send a message via AIM to GameYin
MySpace
Just add a <p> tag or whatever tags they specified before you code the form validation. So before <form> you can put a <p> or before <input>'s

Reply With Quote
  #3  
Old May 6th, 2008, 12:21 PM
Kravvitz's Avatar
Kravvitz Kravvitz is offline
CSS & JS/DOM Adept
Click here for more information.
 
Join Date: Jul 2004
Location: USA
Posts: 15,712 Kravvitz User rank is General 7th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 7th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 7th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 7th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 7th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 7th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 7th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 7th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 7th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 7th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 7th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 7th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 7th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 7th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 7th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 7th Grade (Above 100000 Reputation Level) 
Time spent in forums: 3 Months 3 Weeks 2 Days 10 h 15 m 27 sec
Reputation Power: 1473
Welcome to DevShed Forums, mevaser.

Only block-level elements may be a direct child of a <form>. So, put that <input> in a <div>, which is the generic block-level element.

This is really an [X]HTML question, so I'm moving this.

** Thread Moved **
__________________
Spreading knowledge, one newbie at a time.

Learn CSS. | PHP includes | X/HTML Validator | CSS validator | Dynamic Site Solutions

IE7: the generation 7 browser new in a world of generation 8 browsers.
Design/program for Firefox (and/or Opera), apply fixes for IE, not the other way around.

Last edited by Kravvitz : May 6th, 2008 at 12:23 PM.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignHTML Programming > Validation problem (Form)


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway