The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Contact Form help Reply To: Contact Form help


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.

  1. test if form is passing values first
  2. integrate validation
  3. format email
  4. 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.