If you really need to have this information on submit on client side, 
use this:
<script>
function me(){
    alert(submitValue);
    }
function whichButton(button)
    {
    submitValue = button.value;
    }
var submitValue;
</script>
<form onsubmit="return me()">
<input type="text" name = "me1">
<input type="submit" name = "me1" value="1" onClick="whichButton(this)">
<input type="submit" name = "me2" value="2" onClick="whichButton(this)">
<form>
(watch out, if you type "onsubmt", like I stupidly copy'n pasted from 
your code, it won't work... ;-)

If you only care which button in the CF template called by the form, 
then you could use this:
<FORM ACTION="testButton.cfm">
<input type="text" name = "me1">
<input type="submit" name = "sub" value="1">
<input type="submit" name = "sub" value="2">
<form>

and in testButton.cfm:
<CFOUTPUT>submit button was #sub#</CFOUTPUT>

-- 
_______________________________________
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:219035
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to