cf_securityimage

Click to Download

Description

Prevents those horrible spam bots from auto submitting rubbish through your web forms.

This tag will display a security image and a text box in your form. The person submitting the form has to type the text that is displayed on the image in the text box before they can submit the form.
 

Usage

Use on contact forms and other data entry forms on your website.

You will need to execute this code twice on your page, once in the place where you want to display the security image and once on the page where you want the validation to take place. An example is below:

<!--- when validating --->
<cf_securityimage action="validate" message="The code you entered was incorrect!">

<!--- place where you want to display the security image --->

<cf_securityimage action="display">

Attributes

message Optional Used when the action is 'validate'. Displayes a custom message to inform the user if their code was incorrect
name Optional Required if action is 'display'. The name of the text field the user will type the code into
width Optional A style attribute. Specify a width of the text field
class Optional A style attribute. The name of a stylesheet attribute to apply to the text box
action Required The action you want to perform with the tag. 'display' or 'validate'. Default is 'display'
 

Featured Links