Hi,
how can I pass the returned value from Javascript to PHP?
I have:
------------------------------------------------------------------------
------
if ( x>y) {
echo '<script language="JavaS cript">';
echo 'confirm(\''.$i temname.' requires '.$optionname.' Do you want
to add '.$optionname.' ?\')</script>';
<I want to return the true/false value returned when user presses
OK/Cancel, to PHP code>
}
------------------------------------------------------------------------
------
Thanx
how can I pass the returned value from Javascript to PHP?
I have:
------------------------------------------------------------------------
------
if ( x>y) {
echo '<script language="JavaS cript">';
echo 'confirm(\''.$i temname.' requires '.$optionname.' Do you want
to add '.$optionname.' ?\')</script>';
<I want to return the true/false value returned when user presses
OK/Cancel, to PHP code>
}
------------------------------------------------------------------------
------
Thanx
Comment