Well, not sure what you need then, but, this code:
function checkform ( form )
{
// ** START **
if (form.email.value == "") {
alert( "Please enter your email address." );
form.email.focus();
return false ;
}
// ** END **
return true ;
}
Should be more like this:
function checkform ( form )
{
// ** START **
if (form.email.value == "") {
alert( "Please enter your email address." );
form.email.focus();
return false ;
}
else
{
// ** END **
return true ;
}
}
And, of course this will NOT post as there is no post code anywhere. The submit button cancels the form’s posting by switching it to the Javascript, so you will have to add the submitting of the form there. It would be done with this type of JS command: document.forms[“myform”].submit();
Of course, you need to set the ID=“myform” in the tag for this to work…
Hope that is what you were asking for… Good luck…