473,387 Members | 1,504 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,387 software developers and data experts.

Problem with Validator: Form spanning accross table rows does notvalidate

Hi

Unfortunately, I am limited to using tables for part of my current
project. I have a form that spans across a number of TR and TD in the
shape of checkboxes.

Doctype is XHTML 1.0 Transitional, Encoding is utf-8

Is there anything wrong?
Should I try something else? What in that case?

Thanks for the help
:)

#################
Copy of Markup Validation Service v0.6.7 report:

Below are the results of attempting to parse this document with an SGML
parser.

Line 77, column 5: end tag for "form" omitted, but OMITTAG NO was specified

</td>

You may have neglected to close a tag, or perhaps you meant to
"self-close" a tag; that is, ending it with "/>" instead of ">".
Line 71, column 1: start tag was here

<form class="select" method="post" action="post.php">

Line 173, column 28: end tag for element "form" which is not open

<td class="td-title"></form>
Jul 20 '05 #1
8 7138
L Major wrote:
Hi

Unfortunately, I am limited to using tables for part of my current
project. I have a form that spans across a number of TR and TD in the
shape of checkboxes.

Doctype is XHTML 1.0 Transitional, Encoding is utf-8

Is there anything wrong?
Should I try something else? What in that case?

Thanks for the help
:)

#################
Copy of Markup Validation Service v0.6.7 report:

Below are the results of attempting to parse this document with an SGML
parser.

Line 77, column 5: end tag for "form" omitted, but OMITTAG NO was specified

</td>

You may have neglected to close a tag, or perhaps you meant to
"self-close" a tag; that is, ending it with "/>" instead of ">".
Line 71, column 1: start tag was here

<form class="select" method="post" action="post.php">

Line 173, column 28: end tag for element "form" which is not open

<td class="td-title"></form>


Additionally, after reading:
10.3. How can I use tables to structure forms?
at: http://www.htmlhelp.com/faq/html/tab...ml#table-forms

I am still at a loss. I have 3 forms all contained within ONE table. Two
of the forms are enclosed within one TD which is fine but another one
runs across a few.

Here is an over simplified pseudo layout.

Tnx
:)

<table border="0">
<tr><td><form one></form></td></tr>
<tr><td><form two></td></tr>
<tr><td><input type="checkbox" /></td></tr>
<tr><td><input type="checkbox" /></td></tr>
<tr><td><input type="checkbox" /></form></td></tr>
<tr><td><form three</form></td></tr>
</table>
Jul 20 '05 #2
L Major wrote:
Hi

Unfortunately, I am limited to using tables for part of my current
project. I have a form that spans across a number of TR and TD in the
shape of checkboxes.


You have to enclose the table completely inside the form element.
eg.
<form ...>
<table>
...
</table>
</form>

We need to see your document to actually diagnose the problem, a URI
would be nice, but I take a guess at what you doing wrong anyway.

You *cannot* do this, or similar:

<table>
<tr>
<td>
<form ...>
<label><input ...>label 1</label>
</td> <!-- Note: td closed before open form element -->
<td>
<label><input ...>label 2</label>
</form>
</td>
</tr>
<table>

If this is nothing at all like your problem, sorry, it's the best I can
do with the limited description provided by validator, without seeing
your actual document.

--
Lachlan Hunt
http://www.lachy.id.au/

Please direct all spam to ab***@127.0.0.1
Thank you.
Jul 20 '05 #3
Lachlan Hunt wrote:
L Major wrote:
Hi

Unfortunately, I am limited to using tables for part of my current
project. I have a form that spans across a number of TR and TD in the
shape of checkboxes.

You have to enclose the table completely inside the form element.
eg.
<form ...>
<table>
...
</table>
</form>

We need to see your document to actually diagnose the problem, a URI
would be nice, but I take a guess at what you doing wrong anyway.

You *cannot* do this, or similar:

<table>
<tr>
<td>
<form ...>
<label><input ...>label 1</label>
</td> <!-- Note: td closed before open form element -->
<td>
<label><input ...>label 2</label>
</form>
</td>
</tr>
<table>

If this is nothing at all like your problem, sorry, it's the best I can
do with the limited description provided by validator, without seeing
your actual document.


Thank you Lachlan.
I seem to have posted a clarification as you were posting. You are
correct in saying that I have a form running across several TD tags.

AFA, URL, project is not on line yet.

I hope my second post has clarified the position somehow.
I am open to suggestion regarding the situation.
TIA
:)
Jul 20 '05 #4
L Major <lm****@hot.com> wrote:
Additionally, after reading:
10.3. How can I use tables to structure forms?
at: http://www.htmlhelp.com/faq/html/tab...ml#table-forms
Thank you, thank you, thank you, thank you, thank you, thank you,...
I am still at a loss. I have 3 forms all contained within ONE table. Two
of the forms are enclosed within one TD which is fine but another one
runs across a few.


That is not an option.

You can have a single FORM element inside a single TD (or TR) element, or
you can have a single FORM element containing the entire TABLE element.

There are a couple ways to do what you're trying to do. You could split up
the table into three tables, one for each form, and hope the columns line
up. Or you could use a single form with multiple submit buttons, and have
the form do different things depending on which submit button was used.
--
Darin McGrew, mc****@stanfordalumni.org, http://www.rahul.net/mcgrew/
Web Design Group, da***@htmlhelp.com, http://www.HTMLHelp.com/

"There are three kinds of people: those who can count and those who can't."
Jul 20 '05 #5

"L Major" <lm****@hot.com> wrote in message
news:4N********************@eclipse.net.uk...
I am still at a loss. I have 3 forms all contained within ONE table. Two
of the forms are enclosed within one TD which is fine but another one
runs across a few.

Here is an over simplified pseudo layout.

Tnx
:)

<table border="0">
<tr><td><form one></form></td></tr>
<tr><td><form two></td></tr>
<tr><td><input type="checkbox" /></td></tr>
<tr><td><input type="checkbox" /></td></tr>
<tr><td><input type="checkbox" /></form></td></tr>
<tr><td><form three</form></td></tr>
</table>


You can't have a FORM element that starts inside a TD element and doesn't
end inside it. More generally, nowhere in HTML can you have an element that
starts inside another element and ends outside of it, or vice versa. For two
elements A and B, either (1) A contains B, (2) B contains A, or (3) A and B
are completely separate.

Jul 20 '05 #6
Darin McGrew wrote:
L Major <lm****@hot.com> wrote:
Additionally, after reading:
10.3. How can I use tables to structure forms?
at: http://www.htmlhelp.com/faq/html/tab...ml#table-forms

Thank you, thank you, thank you, thank you, thank you, thank you,...

I am still at a loss. I have 3 forms all contained within ONE table. Two
of the forms are enclosed within one TD which is fine but another one
runs across a few.

That is not an option.

You can have a single FORM element inside a single TD (or TR) element, or
you can have a single FORM element containing the entire TABLE element.

There are a couple ways to do what you're trying to do. You could split up
the table into three tables, one for each form, and hope the columns line
up. Or you could use a single form with multiple submit buttons, and have
the form do different things depending on which submit button was used.


Thank you Darin and Harlan.

But that is the 64,000 question. I released that it is causing problem,
however, alternatives are not easy to find.

The mentioned form is rather complicated. It is part of a BBS. Each
forms contains a number of arrays of data, multiple fields [20+] based
inside a CMS system built around a single table. I do not believe in
nested tables and it wouldn't have worked in this case anyway. It would
not be possible to put form tags outside the table and there are other
reasons why forms can not be merged [each of above forms are already
been constructed by merging a number of forms in the first place].

It would be possible to break the form into its components and that
would mean 20+ [can be 50] forms, one in each TD instead of one for all.
Other problems are that, users can not select multiple checkboxes any
more and would be limited to one checkbox at a time which is impractical.

I am stuck.

:(
Jul 20 '05 #7

"L Major" <lm****@hot.com> wrote in message
news:a5********************@eclipse.net.uk...
Darin McGrew wrote:
L Major <lm****@hot.com> wrote:
Additionally, after reading:
10.3. How can I use tables to structure forms?
at: http://www.htmlhelp.com/faq/html/tab...ml#table-forms

Thank you, thank you, thank you, thank you, thank you, thank you,...

I am still at a loss. I have 3 forms all contained within ONE table. Two
of the forms are enclosed within one TD which is fine but another one
runs across a few.

That is not an option.

You can have a single FORM element inside a single TD (or TR) element, or you can have a single FORM element containing the entire TABLE element.

There are a couple ways to do what you're trying to do. You could split up the table into three tables, one for each form, and hope the columns line up. Or you could use a single form with multiple submit buttons, and have the form do different things depending on which submit button was used.


Thank you Darin and Harlan.

But that is the 64,000 question. I released that it is causing problem,
however, alternatives are not easy to find.

The mentioned form is rather complicated. It is part of a BBS. Each
forms contains a number of arrays of data, multiple fields [20+] based
inside a CMS system built around a single table. I do not believe in
nested tables


I'm not familiar with that religion. Philosophically speaking, one shouldn't
use tables for layout at all, but if you're going to, there's nothing
whatsoever wrong with nesting them.

Another option is to have a table *inside* each form, instead of multiple
forms inside one table. You may lose uniformity of horizontal layout, but
that may not be important.

Of course, without seeing what you're trying to do, it's difficult to make
more specific suggestions.
and it wouldn't have worked in this case anyway. It would
not be possible to put form tags outside the table and there are other
reasons why forms can not be merged [each of above forms are already
been constructed by merging a number of forms in the first place].

It would be possible to break the form into its components and that
would mean 20+ [can be 50] forms, one in each TD instead of one for all.
Other problems are that, users can not select multiple checkboxes any
more and would be limited to one checkbox at a time which is impractical.

I am stuck.

Jul 20 '05 #8
Harlan Messinger wrote:
"L Major" <lm****@hot.com> wrote in message
news:a5********************@eclipse.net.uk...
Darin McGrew wrote:
L Major <lm****@hot.com> wrote:
Additionally, after reading:
10.3. How can I use tables to structure forms?
at: http://www.htmlhelp.com/faq/html/tab...ml#table-forms
Thank you, thank you, thank you, thank you, thank you, thank you,...

I am still at a loss. I have 3 forms all contained within ONE table. Two
of the forms are enclosed within one TD which is fine but another one
runs across a few.
That is not an option.

You can have a single FORM element inside a single TD (or TR) element,
or
you can have a single FORM element containing the entire TABLE element.

There are a couple ways to do what you're trying to do. You could split
up
the table into three tables, one for each form, and hope the columns
line
up. Or you could use a single form with multiple submit buttons, and
have
the form do different things depending on which submit button was used.


Thank you Darin and Harlan.

But that is the 64,000 question. I released that it is causing problem,
however, alternatives are not easy to find.

The mentioned form is rather complicated. It is part of a BBS. Each
forms contains a number of arrays of data, multiple fields [20+] based
inside a CMS system built around a single table. I do not believe in
nested tables

I'm not familiar with that religion. Philosophically speaking, one shouldn't
use tables for layout at all, but if you're going to, there's nothing
whatsoever wrong with nesting them.

Another option is to have a table *inside* each form, instead of multiple
forms inside one table. You may lose uniformity of horizontal layout, but
that may not be important.

Of course, without seeing what you're trying to do, it's difficult to make
more specific suggestions.

and it wouldn't have worked in this case anyway. It would
not be possible to put form tags outside the table and there are other
reasons why forms can not be merged [each of above forms are already
been constructed by merging a number of forms in the first place].

It would be possible to break the form into its components and that
would mean 20+ [can be 50] forms, one in each TD instead of one for all.
Other problems are that, users can not select multiple checkboxes any
more and would be limited to one checkbox at a time which is impractical.

I am stuck.


Tnx. I will have to think more about it and see if I can come up with an
alternative approach.

Tnx
:)
Jul 20 '05 #9

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

Similar topics

6
by: Jeff Dunnett | last post by:
Hello, I have written the following HTML Form: <html><head><title>Survey</title></head> <body bgcolor="black" text="white" link="#f6b580" vlink="#c0c0ff"> <img src="logo.gif" width="324"...
1
by: Webby | last post by:
I've decided after several failed attempts this is too difficult to do on my own. I know it's been done before and a tutorial or code must by lying around somewhere. I have a Weekly Calendar ...
7
by: Billy Jacobs | last post by:
I am using a datagrid to display some data. I need to create 2 header rows for this grid with columns of varying spans. In html it would be the following. <Table> <tr> <td colspan=8>Official...
0
by: Tom Pearson | last post by:
I create controls and validators dynamically dependent on data at runtime. I create the control then the relevant validator(s) for it assigning the Control.ID as the control to validate. These...
5
by: MX1 | last post by:
Oh boy, this is kind of a big one. I have a form with several calculated fields on spanning 5 rows. I somehow need to get the field values into a table. Challenge is I don't know how to do this....
0
by: derelict | last post by:
Hey all, im getting desperate now. I have a macro running in Word 2003, when I run the macro it *should* put a 'bottom' cell border in each cell that has the style used - this included a border at...
1
by: nwmotogeek | last post by:
Is it possible to span multiple rows with a single column? For example I may want to associate two items with a persons name and want that name spanned accross both rows (each item) . Is this...
0
by: dancer | last post by:
Can somebody tell me why my RequiredFieldValidator works for the TEXT BOX, (location) but does NOT work for the RADIO BUTTON (EmpTrain)? <%@ Page Language="VB" ClientTarget="downlevel" %> ...
8
by: bruno_guedesav | last post by:
This has ocurred before, but if the person had find a way to solve it or not, I've got no clue. So, here I am to ask for help. I've created a form via pure PHP, basically a bunch of prints...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.