I need desperate help with this php code integrated with flash please


Posted on 16th Feb 2014 07:03 pm by admin

Can someone please help me with this php code which I have been stuck on for weeks . I am trying to send mail from a flash movie to an email address using php but the mail does not appear at the address at all. I am using php enabled server xampp and I have been told to make changes in the php config file which i have done but it still does not seem to work any help guys?

this is the php code

<?PHP

$to = "dmm@live.co.uk";

$subject = "Flash Contact Form Submission";

$message = "Name: " .$_POST['theName'];

$message .="nEmail: " . $_POST[$'theEmail'];

$message .= "nnMessage: " .$_POST[$'theMessage'];

$headers = "From: $theEmail";

$headers .= "nReply-To: $theEmail";

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

?>

the flash code (actionscript 2.0)
stop();

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

sender.onRelease = function () {

senderLoad.theName = theName.text;
senderLoad.theEmail = theEmail.text;
senderLoad.theMessage = theMessage.text;

senderLoad.sendAndLoad("http://duanmmm.co.uk/send.php",recieveLoad);
}

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

No comments posted yet

Your Answer:

Login to answer
232 Like 24 Dislike
Previous forums Next forums
Other forums

text box alphanumeric caracters only
hi all!

I have search on google on how to enter in a test box only caracters A-Z,a-z,0-9 usi

unexpected T_STRING
error log "[Sat Jan 09 18:27:58 2010] [error] [client 127.0.0.1] PHP Parse error: syntax error

Company Code for Vendors created through Business Partners
Hi, experts!

I'm trying to set up the integration between Business Partner (BP) and Vendo

Had a simple form script that suddenly stopped working
It was made about a year ago and had been working fine. Last time it was known to work for sure was

Add weeks in a query?
I have a SQL that summarizes the quantity per week. The weeks that has no value does not exist in th

change text color with a jQuery code
Hihow can I change the text in a asp:TextBox to a different color when I start typing using jQuery?I

issues verifying if user is logged in
I am having issues when a user logs in via asp Login control, the IsAuthenticated still seems to com

Why use interfaces in PHP (OOP)
I am learning OOP in PHP and its been a pretty good learning experience so far. What I didn't unders

Memory Allocation
Hi folks,
see this ex:

int v=5;
v=v+10;

then what will do the compiler before th

ORA-00932: inconsistent datatypes: expected - got CLOB
SO : windows xp
database : XE

there is a table (transito) with two fields of clob

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash