HERE IS THE UPDATED PHP CODE BUT IT STILL WILL NOT WORK:

(FK will not let me put the opening tag here)

$FirstName = $_POST['FirstName'];

$Email = $_POST['Email'];

$ToComments = $_POST['ToComments'];

$ToEmail = "you@yourdomain.com";

$ToSubject = "Flash Contact Form";

$EmailBody = "Sent By: $FirstName\nSenders Email: $Email\n\nMessage Sent:\n$ToComments\n";

mail($ToName." <".$ToEmail.">",$ToSubject, $EmailBody, "From: ".$FirstName." <".$Email.">");

?>


I used to have this form and script running where I am hosted:

http://www.flashkit.com/movies/Inte...-7701/index.php

My hosting service updated to PHP 4.3.1 and the PHP script will not work anymore. Can anyone help me update the PHP code to work with PHP 4.3.1?

Here is the PHP code:

$ToEmail = "you@yourdomain.com";

$ToSubject = "Contact Form";

$EmailBody = "Sent By: $FirstName\nSenders Email: $Email\n\nMessage Sent:\n$ToComments\n";

mail($ToName." <".$ToEmail.">",$ToSubject, $EmailBody, "From: ".$FirstName." <".$Email.">");

I am not sure if the ActionScript needs to be updated as well but here it is anyway:

on (release) {

if (!FirstName.length) {
EmailStatus = "Please enter your name.";
}

else if (!Email.length || Email.indexOf("@") == -1 || Email.indexOf(".") == -1) {
EmailStatus = "Please enter a valid email";
}

else if (!ToComments.length) {
EmailStatus = "Please enter your message";
}

else {
loadVariablesNum ("MailPHP.php", "0", "Post");
gotoAndPlay(10);
}
}