squiblo Posted September 23, 2009 Share Posted September 23, 2009 im trying to echo this... <?php if ($img1) echo "<td width='33.3%' align='center'> <FORM> <INPUT type='button' value='New Window!' onClick="window.open('http://www.pageresource.com/jscript/jex5.htm','mywindow','width=400,height=200')"> </FORM> </td>"; ?> but the quotation marks are giving an error, but if i change the quotation marks to apostrophes then the link does not work, how is this suppose to be wrote out? Quote Link to comment https://forums.phpfreaks.com/topic/175269-solved-php-and-javascript/ Share on other sites More sharing options...
nuttycoder Posted September 23, 2009 Share Posted September 23, 2009 try this: if ($img1) echo "<td width='33.3%' align='center'> <FORM> <INPUT type='button' value='New Window!' onClick=\"window.open('http://www.pageresource.com/jscript/jex5.htm','mywindow','width=400,height=200')\"> </FORM> </td>"; Quote Link to comment https://forums.phpfreaks.com/topic/175269-solved-php-and-javascript/#findComment-923747 Share on other sites More sharing options...
squiblo Posted September 23, 2009 Author Share Posted September 23, 2009 thank you! Quote Link to comment https://forums.phpfreaks.com/topic/175269-solved-php-and-javascript/#findComment-923748 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.