Many people replied instantly and many thanks for that because we visited
those links and got more ideas.
What we eventually implemented is (flash)
on submit click
---
var my_lv:LoadVars = new LoadVars();
my_lv.Name = ta_firstName.text;
my_lv.Surname = ta_lastName.text;
my_lv.send("emailFormValues.php", "frmEmail", "POST");
---
and PHP
---
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Print all GET and POST values</title>
</head>
<body>
<?php
foreach ( $_REQUEST as $key => $value ) {
$body .= $key . " " . "=" . " " . $value;
}
$to = "[EMAIL PROTECTED]";
$subject = "Test";
$headers = "From: [EMAIL PROTECTED]" .
"X-Mailer: php";
if (mail($to, $subject, $body, $headers)) {
echo("<p>Message successfully sent!</p>");
} else {
echo("<p>Message delivery failed...</p>");
}
?>
</body>
</html>
---
frmEmail is an iframe in html 1x1 pixel who will load the and exectute the
php script and allow the flash form to move to the 2nd frame
Cheers 2 all, Robert
From: "eric e. dolecki" <[EMAIL PROTECTED]>
Reply-To: [email protected]
To: [email protected]
Subject: Re: [Flashcoders] flash contact form backend
Date: Thu, 13 Sep 2007 12:00:23 -0400
http://www.kirupa.com/developer/actionscript/flash_php_email.htm
On 9/13/07, robert nikolic <[EMAIL PROTECTED]> wrote:
>
> I have a flash contact form, and I'm struggling to implement a proper
> backend code to be able to send it to an email recipient.
>
> Could anyone help with an example, many thanks,
> Robert
>
> _________________________________________________________________
> Express yourself instantly with MSN Messenger! Download today it's FREE!
> http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
>
> _______________________________________________
> [email protected]
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
_________________________________________________________________
Don't just search. Find. Check out the new MSN Search!
http://search.msn.com/
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com