当用户单击 CANCEL 的值时,我在确认消息中出现问题,$IsCanceled = "yes"
然后当我单击 OK 时,`$IsCanceled = "no" 的值..
问题是,当我单击确定时,$IsCanceled 的值仍然是...
<?php
else { ?>
<script>
var myVar = "<?php echo $bldg[$i]; ?> station is already full. Do you want to save the other networks?";
if (confirm(myVar)) {
<?php $IsCanceled = "no";?>
} else {
<?php
$IsCanceled = "yes";
?>
}
</script>
<?php
}
//and so on...
我已经追踪了一切,但它仍然是“是”的价值..
谢谢