kaiman Posted December 14, 2010 Share Posted December 14, 2010 Hi All, I am trying to call a javascript pop-up window via a link by echoing out the html via php but keep getting parse errors: Parse error: syntax error, unexpected ')', expecting ',' or ';' Here is the code in question: echo "<td class=\"today\"> <a href=\"javascript:statusWindow('status.php?month=".$month."&day=".$day."&year=$year');\">"$day_num</a> </td>\n"; And here is the javascript function: <script type="text/javascript"> function statusWindow(url){ status_popupWin = window.open(url, 'status', 'resizable=yes, scrollbars=yes, toolbar=no,width=400,height=400'); status_popupWin.opener = self; } </script> Any help is appreciated. Thanks, kaiman Link to comment https://forums.phpfreaks.com/topic/221579-okay-ive-been-looking-at-this-far-too-long-please-help/ Share on other sites More sharing options...
trq Posted December 14, 2010 Share Posted December 14, 2010 echo "<td class=\"today\"> <a href=\"javascript:statusWindow('status.php?month=$month&day=$day&year=$year');\">$day_num</a></td>\n"; Link to comment https://forums.phpfreaks.com/topic/221579-okay-ive-been-looking-at-this-far-too-long-please-help/#findComment-1146989 Share on other sites More sharing options...
kaiman Posted December 14, 2010 Author Share Posted December 14, 2010 thorpe, it's just like me to over complicate it. Thanks for the help, that worked! kaiman Link to comment https://forums.phpfreaks.com/topic/221579-okay-ive-been-looking-at-this-far-too-long-please-help/#findComment-1146994 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.