What he means by buttonname.x and buttonname.y is this:
<input type="submit" name="func" value="X">
<input type="submit" name="func" value="Y">
Then when you submit the form (to the same page):
<cfif func is "X">
Do this process
<cfelseif func is "Y">
Do this other process
<cfelse>
</cfif>
This isn't a fudge, you're just thinking in javascript terms in a CF
usergroup... I know how you feel I write a lot of js and tend to look at
things from that perspective all-too-often.
Joshua Miller
Web Development
Eagle Technologies Group, Inc.
Business Solutions for the Next Generation
www.eagletgi.com
[EMAIL PROTECTED]
----- Original Message -----
From: "Scott, Andrew" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Tuesday, February 20, 2001 8:57 PM
Subject: RE: Multiple submit buttons on a form
> To be honest this is a fudge, and is used for input type=img... The X and
Y
> are co-ordinates and were introduced to allow to have one image and
combine
> this with an image map and your on your way to understanding this
> further.... If you use a input type=submit the X and Y are not available
to
> the action page as you have suggested.
>
>
> -----Original Message-----
> From: Veena Sarda [mailto:[EMAIL PROTECTED]]
> Sent: 21 February 2001 15:52
> To: CF-Talk
> Subject: Re: Multiple submit buttons on a form
>
>
> Give the same action file for both submit buttons. Then on that action
file
> chack which button caused the submit and redirect it to differesnt URLs.
> You can check the button pressed as buttonname.x and buttonname.y
> If these values are not equal to zero or null, you know which button was
> clciked.
>
> Veena
> ----- Original Message -----
> From: Scott, Andrew <[EMAIL PROTECTED]>
> To: CF-Talk <[EMAIL PROTECTED]>
> Sent: Wednesday, February 21, 2001 9:59 AM
> Subject: RE: Multiple submit buttons on a form
>
>
> > You could, but what if you needed the information from the same form but
> to
> > do 2 different actions as was asked:-)
> >
> >
> > -----Original Message-----
> > From: Joshua Tipton [mailto:[EMAIL PROTECTED]]
> > Sent: 21 February 2001 15:22
> > To: CF-Talk
> > Subject: RE: Multiple submit buttons on a form
> >
> >
> > Put them within different forms
> >
> > -----Original Message-----
> > From: Les Irvin [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, February 20, 2001 10:15 PM
> > To: CF-Talk
> > Subject: Multiple submit buttons on a form
> >
> >
> > How would one put multiple submit buttons on a single form, each calling
a
> > different page upon submit?
> > Thanks,
> > Les
> >
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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