Jump to content

Email Process - Flash Variables Integration


scottjk

Recommended Posts

I'm having problems getting a mail processing script working. Here is my flash script to gather variables along with the php scrip.

 

on (rollOver) {

this.gotoAndPlay("over");

}

on (releaseOutside, rollOut) {

this.gotoAndPlay("out");

}

on (release) {

if (_root.pgapp.pages1.page11.name1 == "Name" ||

_root.pgapp.pages1.page11.attend == "Attend" ||

_root.pgapp.pages1.page11.guests == "Guests" ||

_root.pgapp.pages1.page11.email == "Email" ||

_root.pgapp.pages1.page11.message1 == "Message" ||

_root.pgapp.pages1.page11.name1 == "" ||

_root.pgapp.pages1.page11.email == "" ||

_root.pgapp.pages1.page11.number == "" ||

_root.pgapp.pages1.page11.subject == "" ||

_root.pgapp.pages1.page11.message1 == "") {

_parent.gotoAndStop(3);

} else {

_parent.loadVariables("processEmail.php", "POST");

_parent.gotoAndStop(2);

}

}

 

Here is the PHP script:

 

<?php

 

 

$name1=$_POST['name1'];

$attend=$_POST['attend'];

$guests=$_POST['guests'];

$email=$_POST['email'];

$message1=$_POST['message1'];

$name1=trim($name1);

$email=trim($email);

 

 

$toaddress='[email protected]';

 

mail($toaddress,$attend,$guests,$message1,"From: $name1 <$email>\r\nReply-To: $email\r\nReturn-Path: $email\r\n");

 

?>

 

Any help would be appreciated.

 

Scott

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.