Problem with contact form

1 replies
Hi I have a problem with a contact form. I need that contact form would not be sent unless all needed fields are filled in.

The code i use is:

<a href="#" onclick="javascript:validateonsubmit();">Validate on Submit</a>
function validateonsubmit(){
var myForm=document.getElementById("calc");
var SS= Spry.Widget.Form.validate(myForm);
if(SS==true){
myForm.submit();
}
}

In some reason it gives me strange error codes when i type something in, but i need that when i click submit, and some fields are empty, it would tell, that this field must be filled in.



Thanks!
#contact #form #problem

Trending Topics