I have not learned Javascript,just copy & paste & revise
<script language="JavaScript">
function confirmDelete{
re = confirm("Delete or not?(yes,cancel)");
if (re == "0"){<?php $re1 = 0;?>}else{ <?php $re1 = 1;?>}
<!--the upper line will cause the confirm windows disappearing--!>
return 0;
}
document.writeln(confirmDelete());
</script>
<?php
echo "\$re1 = $re1";
?>
1. How to pass the value "re" in Javascript to $re1 in php
2. How to revise to make the confirm window appear and pass the value
correctl
thanks in advanced.
-jiing-