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
Accessing element of object array
Hello
My object looks like this:
Array ( [0] => User Object ( [id] =>
Help with looping
I have a comma separated list of colors taken from a database ($ICo) and a directory of images named
session variable problem
Session variable is not working in Fire fox i am getting null value but it is working fine in IE.
RSS feed - FeedList for WordPress
Hi,
I'm trying to alter the FeedList plugin for WordPress so that I can click on the title of
Parse Error with doctype
I'm getting a parse error with this simple code. I don't get it. It worked one time then when I relo
Login Issue's
Code: <?php
$file = fopen('user.txt', 'r');
/* Set login to false initially */
Secure FTP
Hi experts,
There is no SFTP action in MII workbench.
This means it needs developing custo
Trigger tag in aspx is not coming
hi all ,iam new to ajax, iam using file upload inside the update pannel but right now i want to use
how to get different value in second view of webdynpro?
hello guys,
In ABAP webdynpro I am trying to create one application having two views.
how to remove in php string display
My code is
$message="We're looking at developing our website.";
$body= "