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
Paddy
Forum Contributor
Posts: 244 Joined: Wed Jun 11, 2003 8:16 pm
Location: Hobart, Tas, Aussie
Contact:
Post
by Paddy » Tue Dec 16, 2003 9:23 pm
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?
microthick
Forum Regular
Posts: 543 Joined: Wed Sep 24, 2003 2:15 pm
Location: Vancouver, BC
Post
by microthick » Tue Dec 16, 2003 9:33 pm
I think you'd have to use JavaScript to open a popup window.
dull1554
Forum Regular
Posts: 680 Joined: Sat Nov 22, 2003 11:26 am
Location: 42:21:35.359N, 76:02:20.688W
Post
by dull1554 » Tue Dec 16, 2003 10:28 pm
as far as i know you can't do that with a php header!?!?!?!?!?!?!?
Paddy
Forum Contributor
Posts: 244 Joined: Wed Jun 11, 2003 8:16 pm
Location: Hobart, Tas, Aussie
Contact:
Post
by Paddy » Tue Dec 16, 2003 10:40 pm
Grrr...
<--- Hates JS.
d3ad1ysp0rk
Forum Donator
Posts: 1661 Joined: Mon Oct 20, 2003 8:31 pm
Location: Maine, USA
Post
by d3ad1ysp0rk » Tue Dec 16, 2003 11:00 pm
Code: Select all
<script language="javascript">
window.open("yourpage.php");
</script>
<-- hates JS too, but knows that bit of it