how can i change to php that opens a link in a new window pl

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
phperoo
Forum Newbie
Posts: 2
Joined: Thu Feb 11, 2010 6:09 pm

how can i change to php that opens a link in a new window pl

Post by phperoo »

I have this bit of PHP code on my CMS
<?php
echo $global_data["links"];
?>

I can not set "open link in new window" (blank window)
from within the CMS Admin, so i need to kind of add something to the PHP script above to make it happen - but what and how, any suggestions??
JakeJ
Forum Regular
Posts: 675
Joined: Thu Dec 10, 2009 6:27 pm

Re: how can i change to php that opens a link in a new window pl

Post by JakeJ »

Try this:

header('Location: page.php');
phperoo
Forum Newbie
Posts: 2
Joined: Thu Feb 11, 2010 6:09 pm

Re: how can i change to php that opens a link in a new window pl

Post by phperoo »

i can't add any "header" stuff to the file itself.

This PHP webpage file is just a template page as part of a CMS, so i need to find a way to add the blank window directly to the PHP command as posted somehow.....
JakeJ
Forum Regular
Posts: 675
Joined: Thu Dec 10, 2009 6:27 pm

Re: how can i change to php that opens a link in a new window pl

Post by JakeJ »

An echo statement doesn't execute anything, it just produces output. I don't know of any way to manipulate an echo to open a window. I don't think you can do it.
Post Reply