How to redirect a page in php?

Redirect a page to another one

Team Leader Asked on February 11, 2017 in PHP.
Add Comment
1 Answer(s)

    Using the header function.

    /* Redirect browser */
     exit(); ?>

    Using Javascript:

     <?php echo '<script type="text/javascript">
     window.location.href = ""
     </script>'; ?>
    Team Leader Answered on March 19, 2017.
    Add Comment

    Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.