i have a form that for submit call a javascript function( fn1() ):
<form method="POST" name="MailForm" onSubmit="return fn1()">
and i have a php function:
<? PHP
function fn2(){
... this function check some conditions an return true or false
}
?>
my javascript function is:
<SCRIPT language=JavaScript>
function fn1(){
... some codes
... at the end of this function i want to return the value of fn2() ,my php function --> this is my problem.
}
</SCRIPT>
how i can use the value of php function in java script?