Ultrakd Posted April 14, 2009 Report Share Posted April 14, 2009 I am using the contact form PHP from Tutvid.com. But he doesnt show how to make a varification image or none of that. On my site I have an image but I dont have it coded properly to not allow the email to be sent unless it is properly typed in. In other words on my contact form you can type anything in and it will send it. Help Please!! Quote Link to comment Share on other sites More sharing options...
jlhaslip Posted April 15, 2009 Report Share Posted April 15, 2009 Here is a pretty fair Captcha script tutorial that uses the GD library to create the images. Well explained in the Tutorial. http://www.trap17.com/forums/Simple-Php-Captcha-Image-Validation-t45058.html Also, check the Logic for the email script. Follow along to see what happens or should not happen if the Captcha is correct/wrong. Quote Link to comment Share on other sites More sharing options...
Ultrakd Posted April 15, 2009 Author Report Share Posted April 15, 2009 Here is a link to my contact page http://www.geckogeeks.com/HTML/contact.html. I started using the spry text areas I think this might fix the problem. Here is my PHP script for it. <?php /*Subject and Email Variables*/ $emailSubject = 'Customer Has a Question!'; $webMaster = 'info@geckogeeks.com'; /* Gathering Data Variables*/ $reasonforemailField = $_POST['reasonforemail']; $nameField = $_POST['name']; $emailField = $_POST['email']; $questionsField = $_POST['questions']; $geckoforumsField = $_POST['yes']; $searchengineField = $_POST['yes']; $breederField = $_POST['yes']; $otherField = $_POST['yes']; $body = << Reason for Email: $reasonforemail Name: $name Email: $email Questions: $questions Gecko Forums: $geckoforums Search Engine: $searchengine Breeder Reccomendation: $breeder Other: $other EOD; $headers = "From: $email\r\n"; $headers .= "Content-type: text/html\r\n"; $success = mail($webMaster, $emailSubject, $body, $headers); /* Results rendard as HTML*/ $theResults = << EOD; echo "$theresults"; ?> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.