<form name="foo" action="thispage.cfm">
   <input type="submit" name="add" value="Add"
OnClick="this.form.action='add.cfm';">
   <input type="submit" name="edit" value="Edit"
OnClick="this.form.action='edit.cfm';">
   <input type="submit" name="delete" value="Delete"
OnClick="this.form.action='delete.cfm';">
</form>


That should also work.

Pablo


> Angel Stewart wrote:
>
> >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=#getmodel.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

Get the mailserver that powers this list at 
http://www.coolfusion.com

Reply via email to