# Help, having problems with forms and AS

**URL:** <https://forum.kirupa.com/t/help-having-problems-with-forms-and-as/19799>\
**Category:** flash\
**Created:** [May 1, 2003, 7:00pm UTC](https://forum.kirupa.com/t/help-having-problems-with-forms-and-as/19799 "2003-05-01T19:00:18Z")\
**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 1, 2003, 7:00pm UTC](https://forum.kirupa.com/t/help-having-problems-with-forms-and-as/19799/1 "2003-05-01T19:00:18Z")

</div>

Hello KIRUPA people:

hey, i have a problem using AS to send some variables to a PHP form.

when i click on my button the entire movie unloads from the stage. let’s take a look to the AS of the button:

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

---------------------- and the PHP form is :

\<?

$to = "blabla@blablabla.com";  
$msg = "$name

";  
$msg .= "$message

";

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

?\>

---------------------------------------------- what am i doing wrong?

if you can help me, i would be very thankful

---

<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 1, 2003, 7:16pm UTC](https://forum.kirupa.com/t/help-having-problems-with-forms-and-as/19799/2 "2003-05-01T19:16:46Z")

</div>

you have to use loadVariablesNum()

the second post in this thread:

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