Home › Forums › Back End › Contact Form help › Reply To: Contact Form help
October 22, 2013 at 7:19 pm
#153763
Alen
Participant
404 error is Not Found. So your /bin/contactthanks.php
does not exist, or you have linked to it wrong. Where is the form relative to the page you’re submitting to?
Also, $success
thing doesn’t send anything, it’s just for testing. Addition by subtraction. You’re limiting the number of thing that can go wrong.
- test if form is passing values first
- integrate validation
- format email
- send email
Your process is failing at number 1. Get that working first.
You should be using something like:
$name = trim(stripslashes($_POST['name']));
var_dump($name); // should print the value of Name
Var Dump is a test to see what data is being passed.
-Alen