Page 1 of 1

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

Posted: Thu Feb 11, 2010 6:13 pm
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??

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

Posted: Thu Feb 11, 2010 7:29 pm
by JakeJ
Try this:

header('Location: page.php');

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

Posted: Thu Feb 11, 2010 8:07 pm
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.....

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

Posted: Thu Feb 11, 2010 10:04 pm
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.