I know that PHP and Javascript is a bit tricky to work together but I read all threads I could find and know it can be done. I cannot figure out where i am going wrong.
Below is the Javascript to pop open a window at a certain size. I get out of PHP mode to put the a href in plain html it is pullling the function and url just fine (I can see it in the status part of the window) it even has the right site id to pass along with it. Whick I click on the link, I get "Expected ':'"
Cannot figure out why this is not working. Please advise.
<script language="javascript">
//<!--
function sitepopup(url){ mywindow=window.open('url','popup','width=400,height=400,location=0,menubar=0,resizable=0,scrollbars=0,status=0,titlebar=1,toolbar=0'); }
-->
</script>
<?
...dbstuff...
iteration though sites... ?>
<a href="javascript:sitepopup(site_contact.php?siteid=<? echo $siterow["SITEID"];?>)">
<?
echo htmlspecialchars( stripslashes($siterow["NAME"]));
echo "</a></td></tr>";
...more stuff...