Jump to content


This topic is now archived and is closed to further replies.


single quotes, javascript & echo problems

Recommended Posts

Hi all,

Ok heres the code -->

echo '<center>*New* - Click here to watch <a href="http://www.lazyrecords.co.uk/webtv.html" onclick="window.open('http://www.lazyrecords.co.uk/webtv.html','Radio','height=400,width=380'); return false;"><b>LazyTV Now!</b></a><br><br></center>';[/code]

Obviously the single quotes are getting parsed wrong and its throwing errors. I've tried esaping them with \ but it still won't work.

Is there anyway to do this??

Thanks in advance for the help!


Share this post

Link to post
Share on other sites
FYI, this would be much simpler if you simply stored the "inside" in a separate variable.

Share this post

Link to post
Share on other sites
This topic is now closed to further replies.


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.