Question

in my form i have this code

<form action="mail.php" class="contactForm" name="cform" method="post">

Problem is when i validate it tells me "name" is not allowed on xhtml strict. is there a way i can use soem thing else for this.

thanks

Was it helpful?

Solution

You should be using id as a unique identifier instead of name.

Is there a particular reason that you need to set the name though? You can just remove the name declaration unless there's a reason for it.

OTHER TIPS

Use ID.

<form action="mail.php" class="contactForm" id="cform" method="post">
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top