Jump to content


Photo

single quotes, javascript & echo problems


  • This topic is locked This topic is locked
2 replies to this topic

#1 doa24uk

doa24uk
  • Members
  • PipPipPip
  • Advanced Member
  • 102 posts

Posted 25 October 2006 - 01:15 PM

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>';

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!


Adam

#2 doa24uk

doa24uk
  • Members
  • PipPipPip
  • Advanced Member
  • 102 posts

Posted 25 October 2006 - 01:43 PM

Solved - locked

#3 fenway

fenway
  • Staff Alumni
  • MySQL Si-Fu / PHP Resident Alien
  • 16,199 posts
  • LocationToronto, ON

Posted 26 October 2006 - 05:13 PM

FYI, this would be much simpler if you simply stored the "inside" in a separate variable.
Seriously... if people don't start reading this before posting, I'm going to consider not answering at all.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users