php wanna bee Posted February 3, 2007 Share Posted February 3, 2007 echo '<a href="#" onclick="window.open('http://mysite.com','start','left=200,top=150,height=510,width=595,status'); return false;"><img src="myg.jpeg" border="0"></a> </ul>'; Any ideas on how to make this work with error ? Thanks Link to comment https://forums.phpfreaks.com/topic/36861-parse-error/ Share on other sites More sharing options...
rantsh Posted February 3, 2007 Share Posted February 3, 2007 dude if you open your echo statement with ' you should escape the internal single quotes... change every single quote in the statement for \' and it should work. btw, what do you mean with Any ideas on how to make this work with error ? Link to comment https://forums.phpfreaks.com/topic/36861-parse-error/#findComment-175875 Share on other sites More sharing options...
php wanna bee Posted February 3, 2007 Author Share Posted February 3, 2007 Thanks, that worked But I ran into another problem. It dont popup it just loads this www.mysite.com/index.php# Any ideas why? Link to comment https://forums.phpfreaks.com/topic/36861-parse-error/#findComment-175889 Share on other sites More sharing options...
php wanna bee Posted February 3, 2007 Author Share Posted February 3, 2007 Anyone please? Link to comment https://forums.phpfreaks.com/topic/36861-parse-error/#findComment-175930 Share on other sites More sharing options...
JasonLewis Posted February 3, 2007 Share Posted February 3, 2007 try this. echo "<a href=\"#\" onclick=\"javascript: window.open('http://mysite.com','start','left=200,top=150,height=510,width=595,status'); return false;\"><img src=\"myg.jpeg\" border=\"0\"></a></ul>"; Link to comment https://forums.phpfreaks.com/topic/36861-parse-error/#findComment-175940 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.