PDA

View Full Version : Issue with email on Flash site



londonmackam
08 Nov 2007, 05:28 PM
Hi I have edited a website in Flash CS3 but don't know what I need to change to get peoples comments, ie an email sent via my contact page.

The actionscript is:

on (release) {
if (name eq "" or subject eq "" or message eq "" or email eq "") {
stop();
} else {
loadVariablesNum("form.php", 0, "POST");
gotoAndStop(2);
}
}

(And the PHP file is underneath)


<?

$to = "youremail@domain-name.com";
$msg = "$name\n\n";
$msg .= "$message\n\n";

mail($to, $msg, "From: My web site\nReply-To: $email\n");

?>

(I tried putting my email in the "youremail@domain-name.com" line but it doesn't work. Any of you lovely people know what else I need to change. Your help would be very much appreciated!!)