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

PHP not creating file.
Its supposed to create a .ini file in the /scriptfiles/users/ with the name they entered into the fi

Filename like the user name
I am creating a form and storing the values in file. Could anyone please tell me how to write a code

Help with translating C code into assembler code
Hi im doing a project that moves a robot around a maze avoiding walls and need some help with conver

How to use Ajax to verify data on a DB ?
Hello everyone, well i want to know how to check a value if it exists or not on a Data base and capt

login to other site by sending post variables
hey,

here is my problem: my school gave me a mail account for school-stuff use. they mail us

gmdate() - want 1 hr before time
Hi,
I am using php gmdate().
Now I am entering all dates in my dbase using gmdate("Y-m-d

Getting Subdomain Name With PHP?
I want to grab the subdomain name with PHP so I can generate database queries.

for example my

Showing selected item at top of list
Hi,

I've got a list of names which i am fetching from database like this:
$qry = db_query

column name cancatenation within PL/SQL
I have a PLSQL store procedure, and the following statement is part of a subquery
fname||lnam

Display Database
I need to create a shopping cart. I found this code online: http://conceptlogic.com/jcart/
Unfort

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