# Problem PHP mail form with Flash MX

**URL:** <https://forum.kirupa.com/t/problem-php-mail-form-with-flash-mx/27813>\
**Category:** flash\
**Created:** [August 6, 2003, 8:56pm UTC](https://forum.kirupa.com/t/problem-php-mail-form-with-flash-mx/27813 "2003-08-06T20:56:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dcnyc](https://avatars.discourse-cdn.com/v4/letter/d/9de053/32.png) [@dcnyc](https://forum.kirupa.com/u/dcnyc)\
**Post date:** [August 6, 2003, 8:56pm UTC](https://forum.kirupa.com/t/problem-php-mail-form-with-flash-mx/27813/1 "2003-08-06T20:56:04Z")

</div>

I am using a PHP mail form and when I try it, I do receive the e-mail but with nothing in there???  
can anyone help? here is the code:

clear button:

on (release) {  
name = “”;  
subject="";  
message="";  
email="";  
}

send button:

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

php form:

\<?PHP  
$to = "you@domain.com";  
$msg = "$name

";  
$msg .= "$message

";  
mail($to, $subject, $msg, "From: [you@domain.com](mailto:you@domain.com)  
Reply-To: $email  
");  
?\>

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 6, 2003, 8:57pm UTC](https://forum.kirupa.com/t/problem-php-mail-form-with-flash-mx/27813/2 "2003-08-06T20:57:54Z")

</div>

Can you strip the code out of your flash file?  
Its probally sending those vars from either the root or inside a movie clip and your not linking them properly.

Well, thats my say

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 7, 2003, 12:26am UTC](https://forum.kirupa.com/t/problem-php-mail-form-with-flash-mx/27813/3 "2003-08-07T00:26:05Z")

</div>

trace you variables in flash do they show?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 7, 2003, 3:37am UTC](https://forum.kirupa.com/t/problem-php-mail-form-with-flash-mx/27813/4 "2003-08-07T03:37:46Z")

</div>

also try doing this for each variable…

```php

$subject = $_POST['subject'];
$name = $_POST['name'];

//...etc...etc...etc...

```

Your host may have superglobals turned off and the PHP script isn’t catching the vars from the Flash file… the code above will fix it…
