I want a user to fill out a form and when they click submit, that form gets sent to an email address..
i’ve tried action=”mailto:
I’m wanting it to send the results of the form behind the scenes, and also send that them to a success page when the form is submitted.
I’ve also tried using action=”mailform.php”
and here is that code.
[code=php]<?php
$to = “[email protected]”;
$subject = “TA Online Enrollment Submission”;
while( list( $key, $value ) = each( $HTTP_POST_VARS ) ) {
$message .= “$key: $valuen”;
}
mail( $to, $subject, $message );
header( “Location: blablahblah.html” );
?>
That is the entire file.
it sends the user to the success page, but does not send the email.
Any suggestions?