If header redirect is not working you can use javascript just make a simple php function for redirect page and put simple javascript.


<?php
    function redirect_to($new_location) {

	 echo("<script>location.href = .'{$new_location}'.;</script>");
	
   }
?>
<p>now you have to call this function just follow this code</p>


<?php
      redirect_to("yourfilename.php"); 
?>
PHP Tricks 2016-06-14View: 1201

Categories: PHP Tricks

Comments

Leave a comment