yes i know that but i cant get to work with the javascript, i just want to add <? include("script.php") echo $popframes ?>
and add the javascript in the php using echo but i cant get it to work because of the stupid script uses both ' and ".
echo <script language="javascript" type="text/javascript">if(parent.location.href==self.location.href)window.location.href='index.php?page= .$popframes. ';
but the qoutes is messing stuff up for me.