Hey There!
I am trying to use a php script for the first time ever and it's working pretty well. I'm using it to send an online form from a Flash page. Everything is working, but after the info has been loaded to the php and the email sent, the little "activity" monitor at the bottom of the browser reads "Waiting for www..." constantly and everything slows down, as if something is still communicating with the users computer. This only happens if the php script is triggered by submitting the info, so I am 68% sure it has to do with the php and not the Flash (though I could very well be wrong!)
So I guess my question is: when using php scripts do you have to "turn them off" after you've called them to prevent them from running constantly?
Here's the php code (which I downloaded from somewhere, I can't remember!)
<?php
$sendTo = "myemail@email.com";
$subject = "Email Sign-Up";
$headers = "From: " . $_POST["contact"] ."<" . $_POST["email"] .">\r\n";
$headers .= "Reply-To: " . $_POST["email"] . "\r\n";
$headers .= "Return-path: " . $_POST["email"];
$message = $_POST["body"];
mail($sendTo, $subject, $message, $headers);
?>
Any help would be greatly appreciated!