I’m working on a portfolio and In that portfolio there’s a contact script
but the problem is that the scripts is inside a movieclip
but when it’s in a movieclip it doens’t seem to work
it’s sends but when i read my mail it only shows
Naam:
Email:
Bericht:
, the movieclip is called “zenden”
there 3 inputtextfields “name”, “email” and “message”
and 1 dynamic textfield “comment”
here’s the code on my button
on (release) {
// logical operator makes sure the textfield is not blank. IndexOf checks for "@" and "." characters in textfield
if (!_root.zenden.email.length || _root.zenden.email.indexOf("@") == -1 || _root.zenden.email.indexOf(".") == -1) {
_root.zenden.comment = "Please check your e-mail address.";
} else if (!_root.zenden.message.length) {
_root.zenden.comment = "Please enter your message.";
} else if (!_root.zenden.name.length) {
_root.zenden.comment = "Please enter your name.";
} else {
loadVariablesNum("form.php", 0, "POST");
_root.zenden.comment="Message sent succesfully!"
}
}
this is the text in my form.php file
<?
$to = "[EMAIL="mail@gmail.com"]mail@gmail.com[/EMAIL]";
$msg = "Naam: $_POST[name]
";
$msg .= "Email: $_POST[email]
";
$msg .= "Bericht: $_POST[message]
";
mail($to, $subject, $msg, "From: TMstudios Form Mail");
?>
can anybody please help me!
its been days and still i havent found a solution
thanks in advance!!