hi, I'm currently working on a flash Contact Us Form for my website. I tried Following a tutorial but so far no luck.
There are basically two files, The flash.swf "form" and the mail.php3 file.
this is the code i have used:
PHP3
This is the ActionScript i used:
Basically frame 3 has a simple E-mail sent message.
and i also have this:
this is where i got the tutorial and most f the code from : http://www.actionscript.org/resources/articles/82/2/Send-Email-via-Flash-and-PHP/Page2.html
Obviously i tried complicating mine beyond my level..
I hope someone can help me understand what i'm doing wrong.
Thanks in advance
Kenneth Bonanno
There are basically two files, The flash.swf "form" and the mail.php3 file.
this is the code i have used:
PHP3
Code:
<?php
mail("smartwebsolutions@mail.com", $_GET["first_name"], $_GET["last_name"], $_GET["address"], $_GET["town"], $_GET["telephone"], $_GET["mail"], $_GET["business_name"], $_GET["business_type"], $_GET["app_date"], $_GET["comments"], "From: PHPMailer
Reply-To: $_GET["from"]
X-Mailer: PHP/" . phpversion());
?>
This is the ActionScript i used:
Code:
Send_Form.onRelease = function()
{
var first_name:String = First_Name.text;
var last_name:String = Last_Name.text;
var address:String = Address.text;
var telephone:String = Telephone.text;
var mail:String = E_Mail.text;
var business_name:String = Business_Name.text;
var business_typs:String = Business_Typs.text;
var app_date:String = App_Date.text;
var comments:String = Comments.text;
errmsg.text = "Please wait... Connecting";
lineAdapt();
loadVariablesNum("mail.php3", 0, "POST");
gotoAndStop(3);
}
Basically frame 3 has a simple E-mail sent message.
and i also have this:
Code:
function lineAdapt ()
{
message_send = message;
while (msg_count<length(message))
{
msg_count = msg_count+1;
if ((substring(message_send, msg_count, 2)) eq "")
{
message_send = (substring(message_send, 1, msg_count-2))+ "" +(substring(message_send, msg_count+2,(length(message_send))-msg_count+2));
}
}
message = message_send;
delete msg_count;
delete message_send;
}
this is where i got the tutorial and most f the code from : http://www.actionscript.org/resources/articles/82/2/Send-Email-via-Flash-and-PHP/Page2.html
Obviously i tried complicating mine beyond my level..
I hope someone can help me understand what i'm doing wrong.
Thanks in advance
Kenneth Bonanno