brown2005 Posted January 24, 2007 Share Posted January 24, 2007 <a href=\"#\" class=\"red_bold_none\" onClick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://dynamicdrive.com');">Homepage</a>I have echo" <a href=\"#\" class=\"red_bold_none\" onClick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://dynamicdrive.com');">Homepage</a>";but it doesnt workany ideas please? Link to comment https://forums.phpfreaks.com/topic/35487-writing-the-below-in-php/ Share on other sites More sharing options...
suzzane2020 Posted January 24, 2007 Share Posted January 24, 2007 hw bout tryin single quotes instead of double ater echo..nt sure..im a newbie ..but i have come across te same problem Link to comment https://forums.phpfreaks.com/topic/35487-writing-the-below-in-php/#findComment-167907 Share on other sites More sharing options...
bqallover Posted January 24, 2007 Share Posted January 24, 2007 I tend to use heredoc syntax when a fair bit of HTML is being used. It cuts out headaches about double and single quotes.[code]echo<<< END<a href="#" class="red_bold_none" onClick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://dynamicdrive.com');">Homepage</a>END;[/code] Link to comment https://forums.phpfreaks.com/topic/35487-writing-the-below-in-php/#findComment-167916 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.