Page is a not externally linkable
knighty - 5:15 pm on Oct 30, 2002 (gmt 0)
just a simple script to check if a couple form fields are empty <script> if ((z.EmployeeName.value == "") ¦¦ (z.PayrollNumber.value == "")); --for the form I have.... <form method=post action="success.html" name="PersonalChange" onSubmit="return Check();"> but i get an error before I get a chance to execute the form
Someone please explain - why do I get a syntax error for the line where the else statement is?
function Check()
{
z = document.PersonalChange;
{
alert('You need to enter your name');
return false;
}
else
{
alert('woohoo');
return true;
}
}
</script>