How would I add a verification to this form so that people have to enter the characters they see in an image for the email to be sent?[url=http://www.phpclasses.org/browse/view/image/file/10494/name/vimagepic.jpg]Example
This is my form.
[code=php]<?php
if (isset($_POST[‘submit’])) {
mail(“[email protected]”,$_POST[‘subject’],”NAME: “.$_POST[‘fname’].” EMAIL: “.$_POST[’email’].”n———————-n MESSAGE:nn”.$_POST[‘message’]);
echo “<br /><br /><strong>”.$_POST[‘reply’].”.</strong>n”;
} else {
?>
<form action=”contact.php” method=”post”>
<table align=”center” width=”300″ cellspacing=”5″ border=”0″>
<tr><td align=”center”>Your Name:<br /><input name=”fname” type=”text” value=”” size=”35″ /></td></tr>
<tr><td align=”center”>Your Email Address:<br /><input name=”email” type=”text” value=”” size=”35″ /></td></tr>
<tr><td align=”center”>Your Message:<br /><textarea name=”message” rows=”8″ cols=”40″><?php echo $_GET[‘message’]; ?></textarea></td></tr>
<tr><td height=”26″ align=”center”><input type=”submit” name=”submit” value=”Submit” /> <input type=”reset” value=”Reset” /></td></tr>
<input type=”hidden” name=”subject” value=”<?php echo (isset($_GET[‘subject’])) ? $_GET[‘subject’] : “Form Contact”; ?>” />
<input type=”hidden” name=”reply” value=”<?php echo (isset($_GET[‘reply’])) ? $_GET[‘reply’] : “Thank you for contacting Wiz Creations”; ?>” />
</table>
</form>
<?php } ?>