Feb 27, 2007 #1 danarashad Programmer Joined Nov 2, 2006 Messages 115 Location 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>
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>
Feb 27, 2007 #2 ClarkKent101 Programmer Joined Jul 19, 2006 Messages 48 Location DE 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>" /> Upvote 0 Downvote
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>" />