title: how to redirect the user to the referer page
body: <p>I have this part of my script</p>
  
  <pre><code> &lt;?php
       else:
   ?&gt;
      &lt;script&gt;
          alert("You are not allowed to edit this CV!");
      &lt;/script&gt;
  
   &lt;?php
       echo '&lt;meta http-equiv="refresh" content="1"; url="'.$the_class-&gt;settings[0]['DomainName'].'myresume.php"';
       endif;
   ?&gt;
  </code></pre>
  
  <p>the objective is, after the alert box popped-out and the "ok" button was clicked,
  the user should be redirected to <a href="http://www.mydomain.com/myresume.php" rel="nofollow">http://www.mydomain.com/myresume.php</a></p>
  
  <p>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 ?</p>