Just use different names... <input type="submit" name="add" value="Add Me, Baby!"> <input type="submit" name="delete" value="Send me to Hell!">
In your form action area, you can check to see if form.add or form.delete exists, and depending on which exists, do A or B. ======================================================================== === Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc (www.mindseye.com) Member of Team Macromedia (http://www.macromedia.com/go/teammacromedia) Email : [EMAIL PROTECTED] Blog : www.camdenfamily.com/morpheus/blog Yahoo IM : morpheus "My ally is the Force, and a powerful ally it is." - Yoda > -----Original Message----- > From: Angel Stewart [mailto:[EMAIL PROTECTED] > Sent: Tuesday, September 02, 2003 12:58 PM > To: CF-Community > Subject: Two submits, one form.. > > > I just can't seem to remember how to do this. > > One form, but two submit buttons. > > One to update, the other to delete a record. > These both go to different action pages of course. > > I just can't remember the code to do this :-\ > I tried <input TYPE="submit" NAME="submit3" VALUE="Delete > Model" > onClick="document.form1.action='model_action.cfm?Delete=#getmo > del.id#';" > > > > But that didn't work. > > -Gel > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/lists.cfm?link=t:5 Subscription: http://www.houseoffusion.com/lists.cfm?link=s:5 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.5 This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. http://www.cfhosting.com
