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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

cfset

Status
Not open for further replies.

danarashad

Programmer
Nov 2, 2006
115
US
is there a way to do a cfset to an image, so i can just call the image by one name.
example

<cfset image=f:\images\site\dog.gif>
 
You would need to wrap double quotes around the path, which makes the variable 'image' a string.

<cfset image = "f:\images\site\dog.gif">

I'm assuming you would want to use that variable in an <img> tag, to do that:

<img src="<cfoutput>#image#</cfoutput>" />
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top