daveoffy Posted March 1, 2009 Share Posted March 1, 2009 How can I echo this, since javascript needs ' 's echo ' <a href="#" onclick="slidedown_showHide('box2');return false;">'; I can't get box2 to work. Link to comment https://forums.phpfreaks.com/topic/147478-solved-javascript-in-a-php-echo/ Share on other sites More sharing options...
Cal Posted March 1, 2009 Share Posted March 1, 2009 the single quotes need to be slash'd fixed: echo ' <a href="#" onclick="slidedown_showHide(\'box2\');return false;">'; Link to comment https://forums.phpfreaks.com/topic/147478-solved-javascript-in-a-php-echo/#findComment-774091 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.