That is why I prefer the onClick to dynamically change the form action as
you suggested.

Shawn McKee


-----Original Message-----
From: Scott Van Vliet [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 21, 2002 9:40 AM
To: CF-Talk
Subject: RE: two SUBMIT buttons on a form?


This won't work on IE 4.5 on the Mac, and NN 4.x (both Mac and PC) are
giving me problems as I am testing this right now.  Has anyone else had
success with NN (or IE on the Mac) and naming buttons? Thoughts?

-----Original Message-----
From: Shawn Regan [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, March 21, 2002 7:26 AM
To: CF-Talk
Subject: RE: two SUBMIT buttons on a form?

Yeah the name of the button is in the form scope.

-Shawn Regan

-----Original Message-----
From: Scott Van Vliet [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 20, 2002 5:04 PM
To: CF-Talk
Subject: RE: two SUBMIT buttons on a form?


Does that work in Netscape?

-----Original Message-----
From: Sam Roach [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, March 20, 2002 5:00 PM
To: CF-Talk
Subject: RE: two SUBMIT buttons on a form?

you could set a name for you submit buttons.  On you process page do a
include based on which button was clicked.

EX:

<form action="go.cfm">

 <input type="submit" value="x1" name="click_x1">
 <input type="submit" value="x2" name="click_x2">
</form>

--------------
go.cfm

<cfif isdefined("click_x1")>
        <cfinclude template="x1_process.cfm">
<cfelseif isdefined("click_x2")>
        <cfinclude template="x2_process.cfm">
</cfif>
-----------------


-- Sam


-----Original Message-----
From: Ed Gordon [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 20, 2002 4:54 PM
To: CF-Talk
Subject: two SUBMIT buttons on a form?


Is there a simple way to have two buttons on the bottom of a form, one
which
goes to one .cfm and one to another, and yet have both process the
entered
form data on the way?

I would of course label them differently, such as NEW and COPY, or for
similar functions.

TIA
Ed Gordon

FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists




______________________________________________________________________
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to