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>

Comments

Popular posts from this blog

how to add new line in google form questions | Fix for next line issue in google form questions

How to add new line in dropdown type question in google forms