Hi guru,
Im wondering how to use javascript inside the php block coding.
Im trying to display comfimation box from javascript into my php page.
The confirmation box appear but how to pass the javascript true value into
php coding.
here are my javascript.
[javascript]
echo "<script language=\"Javascript\">";
echo "var r=confirm(\"overwrite existing file?\") ;";
echo "if (r==true)";
echo " "; <- here i want to pass true value to php variable to continue process
echo "else"
echo " " <- here to cancel if user choose cancel or value return false in confm box
echo"</script>";
[/javascript]
I hope guru can help me to find out the solution.
Thanks