Ok everything worked fine on my server to test it. ( sends the email then goes to a success page) but when I uploaded it to the server that it needs to be on. when I click submit it goes to the actual php page and shows
$value) { $emailBody .= "$key: " . trim(stripslashes($value)) . "\n"; } $to = 'jmwcs06@gmail.com'; $subject = 'Placement form'; $success = mail($to, $subject, $emailBody); // redirect to success page if ($success){ print ""; } else{ print ""; } ?>
then I get an email long after from submitting it before, but there is nothing in the email