IMCanida
10-11-2006, 06:52 PM
I've recently got into Flash 8. I've only been messing with it for about 2 months or so. And Just started to learn more about actionscripts, since there pretty hard. I know the basics of them( stop command, how to make buttons, ect) But recently I'm trying to make a Website with multiple swfs. And one is pretty anyoning :P But should be very basic..
I'm trying to add a Combo Box mail sender swf. Its one of the most basic ones I could find very little code at all.
actionscript -
on (release) {
if (to eq "" || from eq"" || subject eq "" || body eq "") {
getURL("javascript:alert(\"All fields are required\");");
} else {
send = "done";
loadVariablesNum("mail.php", 0, "POST");
getURL("javascript:alert(\"Your mail has been successfully sent\");");
to="";
from="";
subject="";
body="";
}
}
php -
<?
if ($send=="done") {
$to = escapeshellcmd($to);
$subject = escapeshellcmd($subject);
$body = escapeshellcmd($body);
$from = escapeshellcmd($from);
$tfrom = "From: <$from>";
mail($to,$subject,$body,$tfrom);
}
?>
Basically all I've been trying to do is make The ComboBox have a Variable of "to" since thats all it would need to work. Because right now all it uses is Dynamic Text boxs and each one has a different var for each ( from ,body, to, subject)
I searched for hours on these threads looking at different peoples posts with no luck to my answer. So if anyone could help me out I'd be very appreciative.
I attached the Mail.Fla
I'm trying to add a Combo Box mail sender swf. Its one of the most basic ones I could find very little code at all.
actionscript -
on (release) {
if (to eq "" || from eq"" || subject eq "" || body eq "") {
getURL("javascript:alert(\"All fields are required\");");
} else {
send = "done";
loadVariablesNum("mail.php", 0, "POST");
getURL("javascript:alert(\"Your mail has been successfully sent\");");
to="";
from="";
subject="";
body="";
}
}
php -
<?
if ($send=="done") {
$to = escapeshellcmd($to);
$subject = escapeshellcmd($subject);
$body = escapeshellcmd($body);
$from = escapeshellcmd($from);
$tfrom = "From: <$from>";
mail($to,$subject,$body,$tfrom);
}
?>
Basically all I've been trying to do is make The ComboBox have a Variable of "to" since thats all it would need to work. Because right now all it uses is Dynamic Text boxs and each one has a different var for each ( from ,body, to, subject)
I searched for hours on these threads looking at different peoples posts with no luck to my answer. So if anyone could help me out I'd be very appreciative.
I attached the Mail.Fla