header()

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
AnsonM
Forum Commoner
Posts: 72
Joined: Thu Sep 25, 2003 7:21 am

header()

Post 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?
Gen-ik
DevNet Resident
Posts: 1059
Joined: Mon Aug 12, 2002 7:08 pm
Location: London. UK.

Post 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.
Post Reply