View Full Version : trouble validating a form
mcolton
08-11-2009, 01:05 PM
I have code that gives 1 validation (xhtml 1.0 strict) error about using "name" inside a form. Below is the form line:
<form name="catadoptionform" method="post" action="catadoption.php" onsubmit="validate();">
<table>
<tr>
....
</tr>
</table>
</form>
What do I use instead on "name".
Thanks
davelf
08-12-2009, 07:08 AM
have you already try to remove ; in the back of your validate()
<form name="catadoptionform" method="post" action="catadoption.php" onsubmit="validate()">
<table>
<tr>
....
</tr>
</table>
</form>
you see my code up there, there's no ; symbol behind the validate()
i hope it will help:)
mcolton
08-12-2009, 10:51 AM
Thanks but it still gives the same error:
Line 119, Column 15: Attribute "name" exists, but can not be used for this element.
<form name="catadoptionform" method="post" action="catadoption.php" onsubmit=✉
forum_amnesiac
08-14-2009, 11:34 AM
If it doesn't affect anything else you could use id="catadoptionform" instead.
mcolton
08-22-2009, 12:53 PM
Thanks. That worked
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.