Help Needed Validating Contact form to Strict
Hi all, I am having a bit of trouble, getting my contact form page to validate to W3C, If anyone knows away around the problem it would be appreciated.
Error is:
Line 96, Column 86: Attribute "name" exists, but can not be used for this element.
…tact_Forms/send-form.php?id=3" name="checkFRM" id="checkFRM" onsubmit="return
(site linked in sig under "seo services")
Greg K posted this at 03:04 — 12th August 2009.
He has: 2,145 posts
Joined: Nov 2003
Just as the error says, "name" is a valid attribute name, but cannot be used for this element (<form>)
See http://w3schools.com/tags/tag_form.asp
You will see in the list of optional attributes, it is allowed for Transitional and Frameset, but not for Strick which you have your page defined as.
Get rid of the name attribute, it is pretty much only for inputs in strict.
-Greg
NickD posted this at 15:02 — 12th August 2009.
They have: 56 posts
Joined: May 2009
Hi Greg,
Tried removing the name, the popup validation on the form stopped working...
Any other ideas?
webwiz posted this at 21:01 — 12th August 2009.
He has: 629 posts
Joined: May 2007
Try using "document.forms[0]." instead of "document.checkFRM." in your code.
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.