hello everybody,
I have javascript that checks to validate emialfield and empty fields and these functions work. i like to include a popup, if the checks are successfull at the end.
i have the popup funcion thats tested and works but i'm not sure how to add the popup funtion within the formvalidation() funcion.
i tried adding an "else" statment at the end of with(ojbect) {} else(alert("alert"); but didn't wrok. any ideas?
sec. question is, how do i call a javascrip funciton in a php function. if i wanted to call formvalidation() in php function, whats the format?
function formvalidation(thisform)
{ with (form1)
{ if (emailvalidation(Email,"Illegal E-mail")==false) {Email.focus(); return false;};
if (emptyvalidation(field_three,"The textfield is empty")==false) {field_three.focus(); return false;};
} <<<<<<like to call a popup funciton if all checks are successful, how do i do this?
}
I have javascript that checks to validate emialfield and empty fields and these functions work. i like to include a popup, if the checks are successfull at the end.
i have the popup funcion thats tested and works but i'm not sure how to add the popup funtion within the formvalidation() funcion.
i tried adding an "else" statment at the end of with(ojbect) {} else(alert("alert"); but didn't wrok. any ideas?
sec. question is, how do i call a javascrip funciton in a php function. if i wanted to call formvalidation() in php function, whats the format?
function formvalidation(thisform)
{ with (form1)
{ if (emailvalidation(Email,"Illegal E-mail")==false) {Email.focus(); return false;};
if (emptyvalidation(field_three,"The textfield is empty")==false) {field_three.focus(); return false;};
} <<<<<<like to call a popup funciton if all checks are successful, how do i do this?
}