<?php include('header.php'); ?> <script> // similar behavior as an HTTP redirect window.location.replace("dashboard.php"); </script> <?php include('footer.php'); ?> </body> </html>