SyntaxFix
Write A Post
Hire A Developer
Questions
Use:
<?php $url = "targetpage" function redirect$url(){ if (headers_sent()) == false{ echo '<script>window.location.href="' . $url . '";</script>'; } } ?>