I do this...
<form action="" method="post" name="frm" id="frm">
<input type=button value='Copy' onclick=CopyButton()>
<input type=button value='New' onclick=NewButton()>
</form>
<script language="JavaScript1.2">
function CopyButton() {
document.frm.action = 'wherever.cfm';
document.frm.submit();
}
function NewButton() {
document.frm.action = 'wherever2.cfm';
document.frm.submit();
}
</script>
Brian Yager
President - North AL Cold Fusion Users Group
Sr. Systems Analyst
NCCIM/CIC
[EMAIL PROTECTED]
(256) 842-8342
-----Original Message-----
From: Ed Gordon [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 20, 2002 6: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/[email protected]/
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/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists