go to another page php code example
Example 1: php go to another page
<?php header("Location: anotherDirectory/anotherFile.php"); ?>
Example 2: php redirect
header("Location: http://example.com/myOtherPage.php");
die();
<?php header("Location: anotherDirectory/anotherFile.php"); ?>
header("Location: http://example.com/myOtherPage.php");
die();