In this code, the alert box is not working. I want to redirect page and show a message using alertbox. How can I fix it?
if($stmt){
?>
<script type="text/javascript">
alert("Package Successfully Booked..");
</script>
<?php
header("location:javascript://history.go(-1)");
}
?>