Use single quotes for one of them... or escape the " quote. 

<CFSET var123 = "Click here to download your free coupon. <a
href=""http://www.site.com"";>http://www.site.com</a>">

Or

<CFSET var123 = "Click here to download your free coupon. <a
href='http://www.site.com'>http://www.site.com</a>">

Or 

<CFSET var123 = 'Click here to download your free coupon. <a
href='http://www.site.com'>http://www.site.com</a>'>

Or 

<cfsavecontent variable="var123">
Click here to download your free coupon. <a
href="http://www.site.com";>http://www.site.com</a>
</cfsavecontent>

Russ
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, September 26, 2006 11:17 AM
> To: CF-Talk
> Subject: cfset hyperlink
> 
> All,
> 
> I thought this would be simple, but it's not working.  I want to
> set a varaible with a string that contains a hyperlink in it.
> 
> <CFSET var123 = "Click here to download your free coupon. <a
> href="http://www.site.com";>http://www.site.com</a>">
> 
> Thoughts?
> 
> D
> 
> D
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:254226
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to