Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    Jul 2002
    Location
    51° 03' -78" N -114° 05' 72" W
    Posts
    617
    Thanks
    0
    Thanked 0 Times in 0 Posts

    need single quotes yet not working

    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?

  • #2
    Regular Coder
    Join Date
    Jul 2002
    Location
    51° 03' -78" N -114° 05' 72" W
    Posts
    617
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I swear its amazing everytime I post a question doesnt matter how long I try to figure it out! 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

    &#39;

    or

    chr(39)

    as they both work!

  • #3
    Senior Coder
    Join Date
    Jun 2002
    Location
    41° 8' 52" N -95° 53' 31" W
    Posts
    3,660
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Chr(39) is used to generate a single quote in VBScript, I guess that's the only difference. :P
    Former ASP Forum Moderator - I'm back!

    If you can teach yourself how to learn, you can learn anything. ;)


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •