I am trying to create a popup window.. i have a $html var that holds some html code.. and I place some different details inside with php from a database depending on what the users has selected and i want to create a link so when the users clicks it opens a little window with some details. I have this code.. but it doesnt seem to work with php.. the link doesnt work.. in IE it says page has errors.. and when you select link it does nothing.
Looks a bit like this:
$html="
some html ...
<a href='#' onClick='MyWindow=window.open('http://www.pcguide.com.au/SysBuilder/New/cc.php','MyWindow','toolbar=yes,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,width=400,height=300,left=20,top=20'); return false;'>$company</a>
more html....
";
echo $html;
thanks🙂