all groups > macromedia flash sitedesign > march 2006 >
You're in the

macromedia flash sitedesign

group:

Problem with php emailing through Flash 8


Problem with php emailing through Flash 8 pdcraft
3/27/2006 9:49:32 PM
macromedia flash sitedesign: 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.
Re: Problem with php emailing through Flash 8 Henri
4/7/2006 1:57:16 AM
You cannot test this with cntrl enter but you should use a local server
wich understand PHP. PHP is server side code.

Henri

[quoted text, click to view]
AddThis Social Bookmark Button