PHP header redirect not working

PHP Tricks

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

    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>


Categories: PHP Tricks


Leave a comment