Jump to content

[SOLVED] header location variable load in new window


ahs10

Recommended Posts

just echo the javascript,

 

javascript is parsed as the screen loads and php generates the output so

 

<?php
$loc = "http://www.phpfreaks.com";
echo "<script LANGUAGE='JavaScript'>";
echo "self.opener.location = $loc;";
echo "</script>";
?>

 

should work ok

thank you guys.  i had to take a day off this project for this exact reason.  why it never occured to me to have the link that presents this php page open in a new window, thereby solving my problem.....i have no idea what was wrong with me.  anyweezer, as always, the masters of that reside here between these forum of freak walls were quick to answer.  thanks again!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.