You could do this: <html> <head> <script language="javascript"> <!-- var formAction = null; function validForm(obj){ if (formAction == 1){ obj.action = "action_page_1.cfm?variable=Anything"; return true; } else if (formAction == 2){ obj.action = "action_page_2.cfm?variable=SomethingElse"; return true; } else { return false; } } //--> </script> </head> <body> .. <form name="formName" action="#" method="post" onsubmit="return validForm(this)"> <input type="submit" value="Action 1" onclick="formAction=1"> <input type="submit" value="Action 2" onclick="formAction=2"> </form> .. </body> </html>
HTH ^_^ -----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 ______________________________________________________________________ Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.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