473,888 Members | 1,599 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.ph p">

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

<td class="td-title"></form>
Jul 20 '05 #1
8 7167
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.ph p">

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><inpu t type="checkbox" /></td></tr>
<tr><td><inpu t type="checkbox" /></td></tr>
<tr><td><inpu t 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****@stanford alumni.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******** ************@ec lipse.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><inpu t type="checkbox" /></td></tr>
<tr><td><inpu t type="checkbox" /></td></tr>
<tr><td><inpu t 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:
Additionall y, 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******** ************@ec lipse.net.uk...
Darin McGrew wrote:
L Major <lm****@hot.com > wrote:
Additionall y, 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******** ************@ec lipse.net.uk...
Darin McGrew wrote:
L Major <lm****@hot.com > wrote:
Additionall y, 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
2361
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" height="104"alt="logo.gif (15760 bytes)"><br><br> <table border="0" cellpadding="0" cellspacing="0" width="307" align="left">
1
1407
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 It's in a table with 7 columns and 22 rows Across the top I have Monday thru Sunday
7
7708
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 Impact Summary</td> </tr> <tr> <td colspan=2></td>
0
2241
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 controls and validators are then added to a table for display to the user. This code did seem to work originally, but now does not amd I am stumped as to why. There have been some code changes, but not to the methods below and I have pretty much...
5
1786
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. What makes it tougher is the rows need to be written to the table only if the total does not equal zero - kind of a supression thing. Here's a quick mock up: Form might contain these values (simplied for ease of reading) Row1Val1=500...
0
2359
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 the top of the table and one at the bottom, like a set of container border for a table with no border within it. i.e table heading _______________________________ << top border text in the table spanning multiple rows and columns...
1
4523
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 possible? If not what control could this be done with?
0
1587
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" %> <%@ Import Namespace="System.Web.Mail" %> <script language="VB" runat="server">
8
2583
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 together making a form. But somthing strange goes on: the form will only pass it's fields forward under method GET, but not on POST. Here's a snippet of code, just the basics: print "<form name=\"postcomment\" action=\"".HTTP_ROOT."/pages/
0
9961
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9800
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11178
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10777
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10438
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9597
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7990
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5817
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4642
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.