Hej!
Jag har ett formulär som valideras med ett javascript.
Finns det något jag kan göra så att OM allt är ifyllt korrekt, skickas man vidare till en "tack" sida?
koden:<!--
function validateform()
{
if ((document.form1.namn.value=="")||
(document.form1.antal.value=="")||
(document.form1.adress.value=="")||
(document.form1.postnummer.value=="")||
(document.form1.postadress.value=="")||
(document.form1.tele.value=="")||
(document.form1.mobil.value=="")||
(document.form1.mail.value=="")||
(document.form1.foretag.value==""))
{
window.alert ("Fyll i alla obligatoriska fält!")
return false;
}
}
//-->
</script>
sen:
<form action="mailto:minmail.com?subject=anmälan" method="post" name="form1" onSubmit="return validateform( this.form )" enctype="text/plain">
------------------
seven