I always include in my forms a hidden field named "form_submitted":
<form name="formAddUser" action="#CGI.script_name#" method="post">
<input type="hidden" name="form_submitted" value="formAddUser">
....
Then in Application.cfm or onRequest(), I set a default:
<cfparam name="form.form_submitted" value="">
This also allows me to self-submit multiple forms on the same page:
<cfswitch expression="#form.form_submitted#">
<cfcase value="formAddUser">
<cfinclude template="addUserProcess.cfm">
</cfcase>
<cfcase value="formModifyUser">
<cfinclude template="modifyUserProcess.cfm">
</cfcase>
<cfdefaultcase></cfdefaultcase>
</cfswitch>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
ColdFusion is delivering applications solutions at at top companies
around the world in government. Find out how and where now
http://www.adobe.com/cfusion/showcase/index.cfm?event=finder&productID=1522&loc=en_us
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:287827
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4