PDA

View Full Version : Help, having problems with forms and AS



Flugufrelsarinn
May 1st, 2003, 03:00 PM
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\n\n";
$msg .= "$message\n\n";

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

?>

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

if you can help me, i would be very thankful

Jubba
May 1st, 2003, 03:16 PM
you have to use loadVariablesNum()

the second post in this thread:

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