
October 1st, 2012, 03:27 PM
|
|
|
Quote: | Originally Posted by chuck1rar Am sure am missing something but why doesnt this work???
If I hardcode the string value it works fine...
<cfset Str_Order =#rsorder.order_id#>
<cfoutput> #Str_Order# </cfoutput>
<p><a href="MyAccount.cfm?view=customsinvoice&OrderID=' #Str_Order# ' "> test</a></p> |
Your A tag needs to be inside the CFOUTPUT otherwise the #Str_Order# will be read as a string instead of a variable.
Code:
<cfset Str_Order =#rsorder.order_id#>
<cfoutput> #Str_Order# <p><a href="MyAccount.cfm?view=customsinvoice&OrderID=' #Str_Order# ' "> test</a></p></cfoutput>
That will give you the output you want.
|