Web Design Forums

Welcome! Please register or log in: Forgot your password? Why register?

weird w3 error

This thread was started by boolean and has been viewed 822 times, and contains 11 replies, with the last reply made by boolean.
Post Reply
1
View boolean's reputation
boolean, WDF Addict! Private message   E-mail
Posted July 7 '04 at 11:08 PM
      Posts: 161
I'm getting a very weird "form" problem when I run the w3 validator on my site. Here's the link:

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


This is what it says:
Line 109, column 4: end tag for "FORM" omitted, but its declaration does not permit this

</TD>



Line 107, column 0: start tag was here

<FORM METHOD="POST" style="margin-bottom: 0; display: inline;" ACTION="login.ph.

Line 116, column 91: end tag for element "FORM" which is not open

...mages/index_18.gif" ALT=""></A></FORM></TD>

The Validator found an end tag for the above element, but that element is not currently open. This is often caused by a leftover end tag from an element that was removed during editing, or by an implicitly closed element (if you have an error related to an element being used where it is not allowed, this is almost certainly the case). In the latter case this error will disappear as soon as you fix the original problem.

If this error occured in a script section of your document, you should probably read this FAQ entry.



Line 126, column 4: end tag for "FORM" omitted, but its declaration does not permit this

</TD>



Line 125, column 0: start tag was here

<FORM METHOD="POST" style="margin-bottom: 0; display: inline;" ACTION="search.ph

Line 128, column 104: end tag for element "FORM" which is not open

...if" NAME="index_26" ALT=""></A></FORM></TD>


Anyone got any ideas what it means? I can't figure it out

Advertisement Register for free to hide these ads and participate in discussions!

2
345 points at 100% Donor Moderator Repute WDFplus Member
Wired, Admin and WDF Alien Overlord Home page   Private message  
Posted July 8 '04 at 01:01 AM
      Posts: 6,274
Did some checking up, it looks like TDs aren't supposed to be within a form, only around them. Try re-arranging it a bit.
Admin at houseofhelp.com
WDF Resources: The Rules
Founder/Creator/Admin of ZE SECRET PROJECT!

Was another WDF member's post helpful? Click the positive rating button () above the post.
Wired is online now! Reply

3
View boolean's reputation
boolean, WDF Addict! Private message   E-mail
Posted July 8 '04 at 01:41 AM
      Posts: 161
ok im working on getting rid of the td's between.... but now it's doing something funny
http://www.scriptdownloads.com/header2.php
I was working on getting rid of the td's between the search form, but now there is alot of space above the text field, and I have no idea why. Anyone got any ideas?

4
10 points at 100% WDFplus Member
TheGAME1264, Mod-son Canadian Home page   Private message  
Posted July 8 '04 at 01:52 AM
      Posts: 3,040
<TD style="background-image:url(images/index_24.gif);">
<FORM METHOD="POST" style="margin-bottom: 0; display: inline;" ACTION="search.php"><INPUT TYPE="TEXT" NAME="search" size="5" class="login">
</TD>
<TD><IMG SRC="images/index_25.gif" WIDTH="15" HEIGHT="25" ALT=""></TD>
<TD><A HREF="search.php"><INPUT TYPE="IMAGE" SRC="images/index_26.gif" NAME="index_26" ALT=""></A>

</FORM></TD>

There's your problem. You're trying to close your one TD tag before
you've closed the form tag within. You gotta do something like
<td>
<form ....>
...form stuff...
</form>
</td>
Also, you don't hyperlink the image submit button. You just name it an input type.

5
View boolean's reputation
boolean, WDF Addict! Private message   E-mail
Posted July 8 '04 at 01:54 AM
      Posts: 161
I know, wired already pointed that out (and I forgot to unlink the submit) but I already did all that. Please read my previous post as to what problem I'm currently having

6
10 points at 100% WDFplus Member
TheGAME1264, Mod-son Canadian Home page   Private message  
Posted July 8 '04 at 01:10 PM
      Posts: 3,040
In the inline style, try "vertical-align: middle" . That may get rid of that issue.

7
794 points at 99% Donor Moderator Repute WDFplus Member
Posted July 8 '04 at 02:26 PM
      Posts: 11,793
Remember that for XHTML, tags without a normal closing tag need to be internally closed:
<img src="foo.gif" width="1" height="1" alt="" />
filburt1, Web Design Forums.net founder
Want to advertise on this site?
Site of the Month contest: submit your site or vote for the winner!

8
View boolean's reputation
boolean, WDF Addict! Private message   E-mail
Posted July 8 '04 at 03:53 PM
      Posts: 161
what you said didn't work (thegame)

Any more ideas?
Also, now I'm getting some errors that were not there yesterday... something about "document type does not allow element "META" here"
Anyone got any ideas?

9
View ceetee's reputation
ceetee, WDF Addict! Private message  
Posted July 8 '04 at 04:54 PM
      Posts: 117
Fix the basic errors before you do anything else.

http://www.htmlvalidator.com/lite/
Last edited July 8 '04 at 05:03 PM by ceetee. Reply

10
View boolean's reputation
boolean, WDF Addict! Private message   E-mail
Posted July 8 '04 at 06:51 PM
      Posts: 161
the errors that are left ARE the errors i'm having trouble with

11
10 points at 100% WDFplus Member
TheGAME1264, Mod-son Canadian Home page   Private message  
Posted July 8 '04 at 07:27 PM
      Posts: 3,040
boolean: I meant in the <TD> tag, not the <FORM> tag. No big deal though.

As far as your code goes, ceetee's right. You've got a lot of unclosed tags right now going on in your code that may be contributing to things going wrong as well. I can't even view your source in IE. I had to go into FireFox *bleh* to get it.

12
View boolean's reputation
boolean, WDF Addict! Private message   E-mail
Posted July 8 '04 at 07:43 PM
      Posts: 161
I had to do /> for everyone?
For example
<TD height="34" /> ?
<img src="dd.gif" /> ?

Since when has this been the "rule"? I learned html a long time ago and have seen this done before, but didn't know it was required?

Post Reply