johnsmith153 Posted September 12, 2008 Share Posted September 12, 2008 How do I do this? echo "<a href='javascript:function("hello");'>hello</a>" I need three sets of quotes. I suppose I need to escape some of the quotes, but exactly where do i put them? Link to comment https://forums.phpfreaks.com/topic/123988-need-3-quotes/ Share on other sites More sharing options...
johnsmith153 Posted September 12, 2008 Author Share Posted September 12, 2008 echo "<a href='javascript:function("hello")'>hello< / a >"; Link to comment https://forums.phpfreaks.com/topic/123988-need-3-quotes/#findComment-640077 Share on other sites More sharing options...
The Little Guy Posted September 12, 2008 Share Posted September 12, 2008 echo '<a href="javascript:function(\'hello\');">hello</a>'; Link to comment https://forums.phpfreaks.com/topic/123988-need-3-quotes/#findComment-640080 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.