Instead of a using a submit button for the delete, you could use a button:

<button onclick="javascript: location.href='delete.cfm?id=1';">Delete</button>

----- Original Message -----
From: Angel Stewart <[EMAIL PROTECTED]>
Date: Tuesday, September 2, 2003 1:08 pm
Subject: RE: Two submits, one form..

> Yeah I know..but isn't there also a way to change the actual form it
> gets submitted to depending on which button is pressed?
> 
> -Gel
> 
> 
> -----Original Message-----
> From: Raymond Camden [EMAIL PROTECTED] 
> 
> 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.
> 
> 
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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