Groups | Blog | Home
all groups > flash actionscript > september 2006 >

flash actionscript : contact form


dzedward
9/16/2006 10:12:04 PM
dzedward
9/16/2006 10:25:24 PM
heres my code for the php file.............but what do i put for the send
button in flash, and the reset button??

<?
if(!empty($_POST['sender_mail'])
|| !empty($_POST['sender_message'])
|| !empty($_POST['sender_subject'])
|| !empty($_POST['sender_name']))
{
$to = "info@espusa.net"; // replace with your mail address
$s_name = $_POST['sender_name'];
$s_mail = $_POST['sender_mail'];
$subject = stripslashes($_POST['sender_subject']);
$body = stripslashes($_POST['sender_message']);
$body .= "\n\n---------------------------\n";
$body .= "Mail sent by: $s_name <$s_mail>\n";
$header = "From: $s_name <$s_mail>\n";
$header .= "Reply-To: $s_name <$s_mail>\n";
$header .= "X-Mailer: PHP/" . phpversion() . "\n";
$header .= "X-Priority: 1";
if(@mail($to, $subject, $body, $header))
{
echo "output=sent";
} else {
echo "output=error";
}
} else { echo "output=error";
}
?>
cosu
9/16/2006 11:03:32 PM
here's the code for send button:

on (clic)
{
getURL("sendemail.php", "_self", "POST");
}

cosu
9/16/2006 11:08:14 PM
or

loadVariablesNum("sendemail.php", 0, "POST");

dzedward
9/16/2006 11:09:41 PM
AddThis Social Bookmark Button