473,326 Members | 2,175 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

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?
Jul 23 '05 #1
7 1910
Els
Armand Karlsen wrote:
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?


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 -
Jul 23 '05 #2
"Armand Karlsen" <ar************@zen.co.uk> wrote:
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
How are people supposed to submit the form?
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?


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 <st***@pugh.net> <http://steve.pugh.net/>
Jul 23 '05 #3
Els
Steve Pugh wrote:
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.


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 -
Jul 23 '05 #4
Els <el*********@tiscali.nl> wrote:
Steve Pugh wrote:
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.


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


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 <st***@pugh.net> <http://steve.pugh.net/>
Jul 23 '05 #5

"Steve Pugh" <st***@pugh.net> wrote in message
news:lp********************************@4ax.com...
How are people supposed to submit the form?


I haven't coded that yet, it's a work in progress.
Jul 23 '05 #6

"Steve Pugh" <st***@pugh.net> wrote in message
news:lp********************************@4ax.com...
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.


PS: I put the hidden elements inside a <div></div>, which fixed the errors.
Jul 23 '05 #7
Els
Steve Pugh wrote:
Els <el*********@tiscali.nl> wrote:
Steve Pugh wrote:
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.


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


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


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 -
Jul 23 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Bharat Suneja | last post by:
Hi All, I'm running into issues with passing the distinguishedName of a user as a hidden form field in a form from one page to the result page. Page 1: User enters user name in a form field ...
13
by: Dan R Brown | last post by:
I have a large form that is generated dynamically in a jsp using xml / xslt. So, to break up this form into several "tabbed" sections, I break up the form using <div> tags. Each <div...
8
by: Matt Herson | last post by:
I have been trying to find a way to use JavaScript to change the value of a hidden field on submit. I am already invoking a JavaScript to handle the validation on submit. The reason I need to...
1
by: uNConVeNtiOnAL | last post by:
I am trying to do validation on a hidden field, but it doesn't seem to be working - all the other non-hidden fields do Is this indeed not possible? I am using a JSP tag for the hidden field ...
7
by: ani | last post by:
I have two submit buttons in my form which need to validate two different controls on the page . How do I validate portions of the asp.net page. The two submit buttons should validate their...
2
by: Wysiwyg | last post by:
I'm going back to a previous asp.net (C#) web project after a few months of inactivity and my first form, the login, won't submit. I ran with the debugger and still can't see how to resolve this. I...
2
by: this one | last post by:
I have the following code <html> <head> <title>Untitled Document</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <script language="JavaScript"...
4
by: ianbarton | last post by:
Hello all I am trying to setup a feedback form on my webpage using some script provided by my ISP. I really don't know a lot about PHP and it's syntax etc. The feedback form only has 4...
1
by: mark | last post by:
Forgive me if this seems like a stupid question but I need help... I'm trying to do a simple online form that emails me the results from a few fields. Here is the code: <form...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.