# \[FMX\] Hey i need help.. having trouble with a AS Form

**URL:** <https://forum.kirupa.com/t/fmx-hey-i-need-help-having-trouble-with-a-as-form/20091>\
**Category:** flash\
**Created:** [May 5, 2003, 4:41am UTC](https://forum.kirupa.com/t/fmx-hey-i-need-help-having-trouble-with-a-as-form/20091 "2003-05-05T04:41:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Flugufrelsarinn](https://avatars.discourse-cdn.com/v4/letter/f/58956e/32.png) [@Flugufrelsarinn](https://forum.kirupa.com/u/Flugufrelsarinn)\
**Post date:** [May 5, 2003, 4:41am UTC](https://forum.kirupa.com/t/fmx-hey-i-need-help-having-trouble-with-a-as-form/20091/1 "2003-05-05T04:41:39Z")

</div>

Hello guys over there… :beam:

hey i’m having so much trouble with a “contact us page”… i’m having trouble to get this thing to work… i’ve posted a file with the things i’ve been working on… please help me, I don’t know very much about PHP (i don’t know anything!) and well, here i’m going to post the code of every button an PHP file Script.

Here is it

PHP File, called Form.php :

\<?

$to = “[new\_soul\_beast@hotmail.com](mailto:new_soul_beast@hotmail.com)”;  
$msg = "$name

";  
$msg .= "$message

";

mail($to, $subject, $msg, "From: My web site  
Reply-To: $email  
");

?\>

And here is the Submit button AS in Flash MX:

on (release)  
{  
if (name == “” || subject == “” || message == “” || email == “”)  
{  
stop();  
}  
else  
{  
getURL(“form.php”, “\_level0”, “POST”);  
} // end if  
}

Something is wrong, it doesn’t send any mail, and also changes the actual movie to nothing…

HELP MEEEE :’(

---

<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:** [May 5, 2003, 2:45pm UTC](https://forum.kirupa.com/t/fmx-hey-i-need-help-having-trouble-with-a-as-form/20091/2 "2003-05-05T14:45:23Z")

</div>

read this thread:

[http://www.kirupaforum.com/forums/showthread.php?s=&threadid=17604](http://www.kirupaforum.com/forums/showthread.php?s=&threadid=17604)
