This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Flash Site Design > April 2006 > Problem with php emailing through Flash 8





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Problem with php emailing through Flash 8
pdcraft

2006-03-27, 6:44 pm

I have created this scene with all of the input fields with Instance names and
have created the PHP file to go along with it.
When I test my movie by way of (Ctrl+Enter), I fill in the fields and press
submit but no email is sent to my email address in the PHP file.

http://apexls.com/navi-menu.html

//ActionScript:

var senderLoad:LoadVars = new LoadVars();
var receiveLoad:LoadVars = new LoadVars();

submit.onRelease = function(){
senderLoad.Name = Name.text();
senderLoad.Phone = Phone.text();
senderLoad.Fax = Fax.text();
senderLoad.Email = Email.text();
senderLoad.Address = Address.text();
senderLoad.Comments = Comments.text();

senderLoad.sendAndLoad("http://www.apexls.com/home/apexls/send.php",receiveLoad
);
}

receiveLoad.onLoad = function(){
if(this.sentOk){
_root.gotoAndStop("success");
}
else {
_root.gotoAndStop("failed");
}
}

//PHP:

<?PHP

$to = "paul@apexls.com";
$subject = "Survey Request Submission";
$message = "Name: " . $Name;
$message .= "\nPhone: " . $Phone;
$message .= "\n\nFax: " . $Fax;
$message .= "\n\nEmail: " . $Email;
$message .= "\n\nAddress: " . $Address;
$message .= "\n\nComments: " . $Comments;
$headers = "From: $Email";
$headers .= "\nRely-To: $Email";

$sentOk = mail($to,$subject,$message,$headers);

echo "sentOk=" . $sentOk;

?>

Again, I am trying to sent an email to Service Request email to a certain
email address by way of PHP in Flash 8, I dont know what I am doing wrong, but
if anyone can help me, it would be greatly appriciate.

Henri

2006-04-06, 10:51 pm

You cannot test this with cntrl enter but you should use a local server
wich understand PHP. PHP is server side code.

Henri

pdcraft wrote:
> I have created this scene with all of the input fields with Instance names and
> have created the PHP file to go along with it.
> When I test my movie by way of (Ctrl+Enter), I fill in the fields and press
> submit but no email is sent to my email address in the PHP file.
>
> http://apexls.com/navi-menu.html
>
> //ActionScript:
>
> var senderLoad:LoadVars = new LoadVars();
> var receiveLoad:LoadVars = new LoadVars();
>
> submit.onRelease = function(){
> senderLoad.Name = Name.text();
> senderLoad.Phone = Phone.text();
> senderLoad.Fax = Fax.text();
> senderLoad.Email = Email.text();
> senderLoad.Address = Address.text();
> senderLoad.Comments = Comments.text();
>
> senderLoad.sendAndLoad("http://www.apexls.com/home/apexls/send.php",receiveLoad
> );
> }
>
> receiveLoad.onLoad = function(){
> if(this.sentOk){
> _root.gotoAndStop("success");
> }
> else {
> _root.gotoAndStop("failed");
> }
> }
>
> //PHP:
>
> <?PHP
>
> $to = "paul@apexls.com";
> $subject = "Survey Request Submission";
> $message = "Name: " . $Name;
> $message .= "\nPhone: " . $Phone;
> $message .= "\n\nFax: " . $Fax;
> $message .= "\n\nEmail: " . $Email;
> $message .= "\n\nAddress: " . $Address;
> $message .= "\n\nComments: " . $Comments;
> $headers = "From: $Email";
> $headers .= "\nRely-To: $Email";
>
> $sentOk = mail($to,$subject,$message,$headers);
>
> echo "sentOk=" . $sentOk;
>
> ?>
>
> Again, I am trying to sent an email to Service Request email to a certain
> email address by way of PHP in Flash 8, I dont know what I am doing wrong, but
> if anyone can help me, it would be greatly appriciate.
>

Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews