Or use the same name and two different values.

That is always how I do it

<input type="Submit" name="action" value="Yes">
<input type="Submit" name="action" value="No">

-----
<cfif form.Action EQ "Yes">
        ...
        code
        ...
<cfelse>
        ...
        code
        ...
</cfif>


> -----Original Message-----
> From: Jim Campbell [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, September 02, 2003 3:07 PM
> To: CF-Community
> Subject: Re: Two submits, one form..
> 
> 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

Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. 
http://www.fusionauthority.com/signup.cfm

Reply via email to