Advantages of using hidden fields in ColdFusion
Hidden form fields can be used in a good way for avoiding the spambots. Spambots are automated computer programs designed to assist in the sending of spam. If we have a hidden field in the form, user cannot fill the hidden field, but the spambots can do fill the hidden fields. So for avoiding this, we can have a hidden field say,
<cfinput type="hidden" name="spm_inputcheck" value=" ">
and we can have a condition like:
<cfif form.spm_inputcheck is " ">
perform the actions..
<cfelse>
abort
</cfif>
<cfinput type="hidden" name="spm_inputcheck" value=" ">
and we can have a condition like:
<cfif form.spm_inputcheck is " ">
perform the actions..
<cfelse>
abort
</cfif>
Comments
Post a Comment