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
Problem with passing variables
I'm not really a php programmer so I'm really struggling with this issue.
I have a banner s
foreach loop, assistance request
I would like some guidance on the usage of foreach as I try to parse through a large database and wh
Easy administration on MySQL databases
My website is database driven and I am very tired of manually making queries to my tables in order t
Rand() help needed
Hi all,
Can someone explain and give me a quick example of how I would go about this?
Sort a two dimensional array.
Hi. I've set up a two dimensional array that reads as follows:
Code: $modifiedData = array(
How to replace search button with link?
hi to everbody.
i have a search submit form and button like this :
<form id="f
Oracle11g Patch issue
Hi all,
I'm getting the following error while installing Oracle11g Patch 11.1.0.7.0 on IBM-AI
Comment Mod System Effects all rows...
Sorry if its confusing but here is whats going on: I have a table in a database called comments and
BB_Code error
I'm having a problem with a custom built function and keep getting this error:
Warning: M
A rank users order by points
I want to make an insert from table 'rank' , with number (rank) from the cod blow, to fild users.ran