# Flash Mail php script help

**URL:** https://forum.kirupa.com/t/flash-mail-php-script-help/198042
**Category:** flash
**Created:** [August 22, 2006, 12:08am UTC](https://forum.kirupa.com/t/flash-mail-php-script-help/198042 "2006-08-22T00:08:18Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![seek\_21](https://avatars.discourse-cdn.com/v4/letter/s/a88e57/32.png) [@seek\_21](https://forum.kirupa.com/u/seek_21)
#### Post date: [August 22, 2006, 12:08am UTC](https://forum.kirupa.com/t/flash-mail-php-script-help/198042/1 "2006-08-22T00:08:18Z")

</div>

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

```auto

 
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

```auto

<?
$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!!
