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

Unable to retreve the values from Mysql Query
Hi,

Here is the php code that I have, Query is running properly in phpmyadmin and is resu

Auto fill in input value based on User_ID
Hello,

I'm looking form some input on the following problem.

User loads page ->

Is there something wrong?
Hi all,

Just a quick question... can someone look at this code and see if something is wrong?

Mysql error message
help me find out what this error message means:

"Duplicate entry '0' for key 'PRIMARY'&q

Retrieving Data from Two Different Databases
Hello All,

Ran into another problem and would appreciate some help! I have two datab

Place specific image in html page when specific name is typed.
Hello,

Fairly new to PHP and was curious if someone might know how to solve a fairly simple r

utf8_general_ci error ??
I have all kinds of data to be inserted in database table

//I am getting this error

Yo

Delete HTML file after loading
I have limited experience with php and its been a year or two since I've last used it. I have a sma

unexpected T_VARIABLE error
Hey all! I'm getting an unexpected T_VARIABLE with the following function:

function getHighes

I didnt code this but I need help with it
I'm sorry. i'm not a coder. I have this script for forcing download and previewing mp3. The guy that

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