Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 24th, 2005, 12:58 AM
Armand Karlsen
Guest
 
Posts: n/a
Default Hidden portions of web feedback form break validation

On one page of a site I'm doing for a college project, I have a feedback
form:

http://www.zen62775.zen.co.uk/Test/c..._feedback.html

All parts of this page validate, except for the hidden portions of the form,
used for setting the recipient address, sender address, etc...

http://validator.w3.org/check?uri=ht...tomatically%29

How can I fix these validation errors?


  #2  
Old July 24th, 2005, 12:58 AM
Els
Guest
 
Posts: n/a
Default Re: Hidden portions of web feedback form break validation

Armand Karlsen wrote:
[color=blue]
> On one page of a site I'm doing for a college project, I have a feedback
> form:
>
> http://www.zen62775.zen.co.uk/Test/c..._feedback.html
>
> All parts of this page validate, except for the hidden portions of the form,
> used for setting the recipient address, sender address, etc...
>
> http://validator.w3.org/check?uri=ht...tomatically%29
>
> How can I fix these validation errors?[/color]

It's not the hidden inputs that are the problem, but the fact that
they're in the wrong place. If you put them inside one of the <td>s,
there is no problem. Alternatively, you could use a <fieldset> (or any
of the options the validator gave) between the <form> and the <input>
elements.
The whole point is that <input> elements can't be direct children of
<form>. There has to be some containing element around the <input>
elements. (not only around the hidden ones)

--
Els http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
  #3  
Old July 24th, 2005, 12:58 AM
Steve Pugh
Guest
 
Posts: n/a
Default Re: Hidden portions of web feedback form break validation

"Armand Karlsen" <armand.karlsen@zen.co.uk> wrote:
[color=blue]
>On one page of a site I'm doing for a college project, I have a feedback
>form:
>
>http://www.zen62775.zen.co.uk/Test/c..._feedback.html[/color]

How are people supposed to submit the form?
[color=blue]
>All parts of this page validate, except for the hidden portions of the form,
>used for setting the recipient address, sender address, etc...
>
>http://validator.w3.org/check?uri=ht...tomatically%29
>
>How can I fix these validation errors?[/color]

In the Strict DTD that you are using all <input> elements must be
contained inside block level children of the <form> element.
<fieldset> is obvious but <div> or (as you've used for the other
<input>s) <table>/<tr>/<td> are also possible.

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <steve@pugh.net> <http://steve.pugh.net/>
  #4  
Old July 24th, 2005, 12:58 AM
Els
Guest
 
Posts: n/a
Default Re: Hidden portions of web feedback form break validation

Steve Pugh wrote:
[color=blue]
> In the Strict DTD that you are using all <input> elements must be
> contained inside block level children of the <form> element.
> <fieldset> is obvious but <div> or (as you've used for the other
> <input>s) <table>/<tr>/<td> are also possible.[/color]

Not sure what you mean by <table>/<tr>/<td>, but only the latter is
valid to hold an <input> element.

--
Els http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
  #5  
Old July 24th, 2005, 12:58 AM
Steve Pugh
Guest
 
Posts: n/a
Default Re: Hidden portions of web feedback form break validation

Els <els.aNOSPAM@tiscali.nl> wrote:
[color=blue]
>Steve Pugh wrote:
>[color=green]
>> In the Strict DTD that you are using all <input> elements must be
>> contained inside block level children of the <form> element.
>> <fieldset> is obvious but <div> or (as you've used for the other
>> <input>s) <table>/<tr>/<td> are also possible.[/color]
>
>Not sure what you mean by <table>/<tr>/<td>, but only the latter is
>valid to hold an <input> element.[/color]

Yes, but <td> isn't valid unless inside <tr> which isn't valid unless
inside <table> (with optional <tbody> or <thead> or <tfoot> as an
intermediate layer between <td> and <table>).

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <steve@pugh.net> <http://steve.pugh.net/>
  #6  
Old July 24th, 2005, 12:58 AM
Armand Karlsen
Guest
 
Posts: n/a
Default Re: Hidden portions of web feedback form break validation


"Steve Pugh" <steve@pugh.net> wrote in message
news:lprb41pvq3geomkg6bgjgodupaanvtj1ri@4ax.com...[color=blue]
> How are people supposed to submit the form?[/color]

I haven't coded that yet, it's a work in progress.


  #7  
Old July 24th, 2005, 12:58 AM
Armand Karlsen
Guest
 
Posts: n/a
Default Re: Hidden portions of web feedback form break validation


"Steve Pugh" <steve@pugh.net> wrote in message
news:lprb41pvq3geomkg6bgjgodupaanvtj1ri@4ax.com...[color=blue]
> In the Strict DTD that you are using all <input> elements must be
> contained inside block level children of the <form> element.
> <fieldset> is obvious but <div> or (as you've used for the other
> <input>s) <table>/<tr>/<td> are also possible.[/color]

PS: I put the hidden elements inside a <div></div>, which fixed the errors.


  #8  
Old July 24th, 2005, 12:58 AM
Els
Guest
 
Posts: n/a
Default Re: Hidden portions of web feedback form break validation

Steve Pugh wrote:
[color=blue]
> Els <els.aNOSPAM@tiscali.nl> wrote:
>[color=green]
>>Steve Pugh wrote:
>>[color=darkred]
>>> In the Strict DTD that you are using all <input> elements must be
>>> contained inside block level children of the <form> element.
>>> <fieldset> is obvious but <div> or (as you've used for the other
>>> <input>s) <table>/<tr>/<td> are also possible.[/color]
>>
>>Not sure what you mean by <table>/<tr>/<td>, but only the latter is
>>valid to hold an <input> element.[/color]
>
> Yes, but <td> isn't valid unless inside <tr> which isn't valid unless
> inside <table> (with optional <tbody> or <thead> or <tfoot> as an
> intermediate layer between <td> and <table>).[/color]

Utterly correct :-)
Just wasn't sure if that's what you meant by the slashes between the
elements ;-)

--
Els http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
 

Bookmarks

Thread Tools

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

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles