Page 1 of 1

header()

Posted: Mon Jan 19, 2004 5:45 pm
by AnsonM

Code: Select all

<?php
header("Location: http://www.8th-dimension.net/mysite.php"); /* Redirect browser */

/* Make sure that code below does not get executed when we redirect. */
exit;
?>
How do I make it open in another window when it loads?

Posted: Mon Jan 19, 2004 7:15 pm
by Gen-ik
You can't. You will need JavaScript to open new browser windows.
When you use header() in PHP it will redirect the current browser you are on.