Mailist List Help

Im trying to create a button that allows a user to enter their email address and have a mail sent to add them. Here is the code I have for the button:

[AS]on (release) {
if (email == “”) {
stop ();
} else {
loadVariables (“flash.php”, 0, “POST”);
gotoAndStop (7);
}
}[/AS]

and here is the php on the page that the swf is on

<?PHP
$to = "[email protected]";
mail($to, "Subscribe", "subscribe", $email);
?>

More likely than not I did something stupid or didnt do something simple but if anyone could help me get this to work Id appreciate it, Thanks.