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='none@none.com';

 

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

 

?>

 

Any help would be appreciated.

 

Scott

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.