K this is my problem now...
I have to pass multiple vars in the header for the popup, so I use this link. Excuse the slopiness it's just so many quotes made it really dificult to put this all in 1 echo statement. So I break in and out of PHP.. atleast for now. But the problem is I'm getting OBJECT EXPECTED erorr when clicking on the link
Code: Select all
<a href='javascript: popup("large_pics/clantemp<?=$row['id'].$x."_".$_SESSION["{$row['id']}c"]?>.jpg");'><img src='small_pics/clantemp<?=$row['id'].$x."_".$_SESSION["{$row['id']}c"]?>.jpg' width='120' height='110' border='0' target='_blank'></a>
which will produce javascript: popup("large_pics/clantemp71_1.jpg");
and the function is
Code: Select all
<SCRIPT TYPE="text/javascript" LANGUAGE="javascript">
<!--
function popup(pic)
{
window.open('popup.php?pic='+pic+,'','width=1,height=1,menubar=no,scrollbars=no,toolbar=no,location=no,directories=no,resizable=no,top=0,left=0');
}
//-->
</SCRIPT>
Any help is much appreciated