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
24
Other forums
Converting from one format to another
"I have got a date in DD/MM/YYYY but I need it in MM-DD-YYYY. Help!"
Random Number Generation And Probability
Hello, I am working on a function which has to insert data into a SQL table.
we have to suppl
Forgot password won't work
My forgot password thing is not working properly. It is giving me this errorMailbox unavailable. The
how to get sn motherboard
Hello.
I want to get serial number motherboard, cpu and else hardware.
Can You show me sam
making web pages for accounts
Hello, I would like to make pages for accounts on my website im making (its not a real website..im j
Kill a process
I have a question - how can I kill a process from a command line or by using Oracle SQL Developer? I
LSB (PHP 5.3) problem with static value!
hello,
i'm having a problem. static::$text variable gets lost at some point. can someone plea
Call Screen statement Error
Dear Experts,
is there any setting that needs to be done before creating any dialog progr
Problems with returning true or false in eval()'d code
Hi guys,
Would appreciate some help with a problem when running eval() on a function that sho
PHP code for a proxy
I was wondering which function I could use to create an online proxy tool. I was thinking cURL would