Copy link to clipboard
Copied
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>
Copy link to clipboard
Copied
Try This
------
<cfoutput>
<p><a href="MyAccount.cfm?view=customsinvoice&OrderID=#Str_Order#"> test</a></p>
</cfoutput>
Copy link to clipboard
Copied
Lose the single quotes.
Saurav's idea should work as well.
In either case, you should also encode for url.
<cfoutput>
<p><a href="MyAccount.cfm?view=customsinvoice&OrderID=#URLEncodedFormat(Str_Order)#"> test</a></p>
</cfoutput>
jason
Copy link to clipboard
Copied
If this is your actual code:
<a href="MyAccount.cfm?view=customsinvoice&OrderID=' #Str_Order# ' ">
You don't need the single quotes and you don't want the spaces.