Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Concatenating a variable and a string

Status
Not open for further replies.

theevilone

IS-IT--Management
Aug 19, 2001
52
GB
Stupid question. I want to add a variable, in the case below #productnumber#, to a string(.jpg), to create a new variable(image).

i.e.
<cfset #image# = #productnumber# & .jpg>

I cannot get the syntax right. Can someone please help me to retain what is left of my sanity.

Thanks in advance.
 
<cfset #image# = &quot;#productnumber#.jpg&quot;>
works for me.....
 
or: <cfset image = productnumber & &quot;.jpg&quot;>
Sylvano
dsylvano@hotmail.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top