Page 1 of 1

Headers

Posted: Tue Dec 16, 2003 9:23 pm
by Paddy
I can do this

header("Location: http://www.example.com/");

but I would like to have the same effect as this

<a href="http://www.example.com" target="_blank">

In other words I would like the redirect to open in a new window. Any ideas?

Posted: Tue Dec 16, 2003 9:33 pm
by microthick
I think you'd have to use JavaScript to open a popup window.

Posted: Tue Dec 16, 2003 10:28 pm
by dull1554
as far as i know you can't do that with a php header!?!?!?!?!?!?!?

Posted: Tue Dec 16, 2003 10:40 pm
by Paddy
Grrr...

<--- Hates JS.

Posted: Tue Dec 16, 2003 11:00 pm
by d3ad1ysp0rk

Code: Select all

<script language="javascript">
window.open("yourpage.php");
</script>
<-- hates JS too, but knows that bit of it :P