$insert = mysqli_query($connect, "INSERT INTO orders
(OrderID,Ordered,date_adds) VALUES ('$no','$checkout',NOW())");
if ($insert_it){
echo '
<script>alert ("awtsu")</script>
<script>myFunction</script>
';
}
<script>
function myFunction() {
var txt;
var r = confirm("Cliicq a button!");
if (r == true) {
txt = window.open('confirm.php<?php echo "?order=$no"; ?> ','_self');
} else {
txt = "You pressed Cancel!";
}
}
</script>
如何使用确认而不使用按钮onclick?设置查询时,对话框是或否不起作用。什么是正确的语法?当$ insert设置时,我希望有一个带有两个选项的对话框,当点击时它会直接转到另一个链接