View Full Version : need single quotes yet not working

12-04-2003, 10:19 AM
Ok the following code needs the quotes in red to be there except when I put them in I get an error on the page in the email due to it end early by putting the quotes in how can I have it see the single quotes as text in the url and not something that it should be concerned about in the script?

MessageBody = MessageBody & " <a href='@' onClick='window.open(""http://www.Alwaysremember.ca/Login/register.asp?emc=' " & email & " ' &uid=" & userid & """, ""page"", ""status=yes, scrollbars=yes, width=800, height=600, left=20, top=20"")'>Click here</a>"

any thoughts?:confused:

12-04-2003, 10:31 AM
I swear its amazing everytime I post a question doesnt matter how long I try to figure it out!:mad: The minute I post it 2-5 mins after I figure it out the solution!:P It was to use the ASCII code for single quotes so my question now is: Is there a difference between useing




as they both work!

12-10-2003, 07:40 PM
Chr(39) is used to generate a single quote in VBScript, I guess that's the only difference. :P