By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,346 Members | 2,158 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,346 IT Pros & Developers. It's quick & easy.

Hyperlink as string question

P: 56
Hello

I am trying to create a standard HTML email (SMTP) to be sent to users that would end in the sender's Web URL, as in: http://www.mysite.org

(I declared 'link' as a string and used it earlier in my code, so I don't need to declare it again). I was going to code something like:

Expand|Select|Wrap|Line Numbers
  1. link = "<a href=""http://www.mysite.org"></a>"
but I get an 'Expression Expected' error under that final forward stroke.

Thanks for any advice.

Bluenose
Feb 13 '17 #1

✓ answered by Frinavale

Switch the double quotes to single quotes inside around the URL in the href attribute.

You may want to add content to your link too.

Like this:
Expand|Select|Wrap|Line Numbers
  1. link = "<a href='http://www.mysite.org'>http://www.mysite.org</a>"

Share this Question
Share on Google+
1 Reply


Frinavale
Expert Mod 5K+
P: 9,731
Switch the double quotes to single quotes inside around the URL in the href attribute.

You may want to add content to your link too.

Like this:
Expand|Select|Wrap|Line Numbers
  1. link = "<a href='http://www.mysite.org'>http://www.mysite.org</a>"
Feb 14 '17 #2

Post your reply

Sign in to post your reply or Sign up for a free account.