Angel - Why not use two different "name" attributes for the submits? That would be a lot more reliable than using Javascript...
- Jim 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 This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. http://www.cfhosting.com
