I have this part of my script
<?php
else:
?>
<script>
alert("You are not allowed to edit this CV!");
</script>
<?php
echo '<meta http-equiv="refresh" content="1"; url="'.$the_class->settings[0]['DomainName'].'myresume.php"';
endif;
?>
the objective is, after the alert box popped-out and the “ok” button was clicked,
the user should be redirected to http://www.mydomain.com/myresume.php
now the problem is, before the page loads the redirection, the alert box keeps popping out without reaching the destination page at all…how to fix this ?
You can do something like this if you want to always send them back to http://www.mydomain.com/myresume.php:
You can do something like this if you instead want to send them back to whatever page they were on previously: