Help - Search - Members - Calendar
Full Version: Html forms validation errors.
HTMLHelp Forums > Web Authoring > Markup (HTML, XHTML, XML)
Barons
My layout is setup to show the content of my page in a on hover content box.

When you hover over the search button you get this code along with other things. Its a form.

<?php

include('assets/php/search.php');

?>


When you hover over the submit button you get this code along with other things. Its another form.

<?php

include('assets/php/submit.php');

?>


When I validate my html using only one of the two forms it valid. Doesn't matter which. But when I add in the 2nd one I start getting errors with my id tags. Both of these forms appear on the same page. Should I ignore these 20 errors or is this really a problem?

http://validator.w3.org/check?uri=http%3A%...Validator%2F1.2


Thanks for all the advice!
Darin McGrew
The missing </div> is easy enough to fix.

Within a single page, each id value must be unique. If you actually use the id values, then using the same value for more than one element can cause problems. If you don't use the id values, then you might as well delete the the id attributes (eliminating the validation errors in the process). If you need to use the same value for more than one element on a page, then you should use class attributes rather than id attributes, and change your CSS to match.
Barons
QUOTE(Darin McGrew @ Feb 19 2011, 09:45 PM) *

The missing </div> is easy enough to fix.

Within a single page, each id value must be unique. If you actually use the id values, then using the same value for more than one element can cause problems. If you don't use the id values, then you might as well delete the the id attributes (eliminating the validation errors in the process). If you need to use the same value for more than one element on a page, then you should use class attributes rather than id attributes, and change your CSS to match.



I think i'm going to be using the id tags. I haven't gotten into the php and database stuff yet.


Heres where the site is at. Do you think its going to cause problems?
www.wararmada.com/tdb

I guess i could change the id's? I'm having someone else help me with the php part of this and they are the ones that made the form. When I got them they were each their own page but I didn't like having so many different pages and decided to try and get the same effect out of one page.

Any advice you can give me would be great!
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.