This works for me:

<input type="submit" value="Start Search"  class="SearchSubmit" 
onClick="document.searchForm.action='edit.cfm">
<input type="submit" value="Start Search"  class="SearchSubmit" 
onClick="document.searchForm.action='delete.cfm">

hth,
larry

At 03:04 PM 9/2/2003 -0400, you wrote:
>Or. two different forms on the page, each with a different action.
>
>
>Jerry Johnson
>
> >>> [EMAIL PROTECTED] 09/02/03 03:02PM >>>
>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

Reply via email to