One version of the <cf_formURL2attrbutes> tag has this option built in.
I'll copy paste the code from it, should be quite self explaining:
<!--- This is so that you can have multiple type="image" buttons
on the same page, if you name the button
name="fuseaction_[the value you want]" it will set the
fuseaction to that value --->
<cfif findnocase("fuseaction_",field) and findnocase(".x",field)>
<cfset setfuseaction=replacenocase(field,"fuseaction_","")>
<cfset setfuseaction=replacenocase(setfuseaction,".x","")>
<cfif refind("[0-9]",setfuseaction)>
<!--- This is so you can associate an "ID" with an image
button (optional) like this:
<INPUT type="Image"
src="/IMAGES/MYIMAGE.GIF"
NAME="fuseaction_addthisaddress56">
it would return ID=56 That way you can a bunch of
image buttons in the same form that do the same thing
but each one has an ID associated with it. --->
<cfset
thisid=val(mid(setfuseaction,refind("[0-9]",setfuseaction),len(setfuseacti
on)))>
<cfif thisid>
<cfset caller.ID=thisid>
</cfif>
</cfif>
</cfif>
--
Erki
----- Original Message -----
From: "Ken Beard" <[EMAIL PROTECTED]>
To: "Fusebox" <[EMAIL PROTECTED]>
Sent: Wednesday, March 21, 2001 3:35 AM
Subject: RE: image button navigation
> sounds great, but the type="image" doesn't seem to have a value
> attribute. the only values that get passed through are
> fuseaction.x=56 and fuseaction.y=102 which are the x/y coordinates
> of the pixel you clicked on within the image.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists