join: new@juude



get alerts for new articles






CLOSE WINDOW

join: new@juude



get alerts for new articles






CLOSE WINDOW
html5

Captcha - The Form


Captcha

A Captcha is used to cut down on spam. They are used to "hopefully" eliminated robots from filling out forms.

For the form you need to add a label and input element before the submit button. I have given the input item the name "addition" which will match information within the php. You can use any set of numbers but the addition total must match the number given in the php.

<label>Anti-spam 10 + 12 =</label>
<input name="addition">

Form with Captcha (form information on previous page)

<form id="myForm" method="post" action="address.php">
<label>
Subject</label>
<input type="text" name="subject" required>
<label>
Name</label>
<input type="text" name="name" required>
<label>Email</label>
<input type="email" name="email" required>
<label>Your Comments</label>
<textarea type="text" name="comments" required> </textarea>


//include for anti-spam
<label>Anti-spam 10 + 12 =</label>
<input name="addition">

<input type="submit" name="submit" id="submit" value="SUBMIT" />
</form>



go to top of page