This content has been marked as final. Show 4 replies
send_lv is unneeded. and your php script needs to return something to flash for your return_lv.onLoad method to execute. you can use an echo statement.
thanks for spotting the send_lv - that's an artifact I have to get rid of.
I have this in my php -
$sendTo = "email@example.com";
$subject = "Online Contact Form Submission";
$headers = "From: " . $_POST["flName"] ." <" . $_POST["mail"] .">\r\n";
// next include a replyto
$headers .= "Reply-To: " . $_POST["mail"] . "\r\n";
$headers .= "Return-path: " . $_POST["mail"];
// now we can add the content of the message to a body variable
$message = $_POST["comments"];
// once the variables have been defined, they can be included
// in the mail function call which will send you an email
mail($sendTo, $subject, $message, $headers);
I don't really know where (or how) to put the echo statement in. I think it's something like: echo "&return_lv="success"
OK. Figured it out. Thanks, Kglad - you somehow intuited me in the right direction anyway!