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
Query failed issue with php script but works fine in mssql manager!
hi i have the script below which copies data from one table to another but will only insert new data
Sessions Value Not Saved
Hi,
Im making a login form and im using this code:
Code: if($login=="true"){
Taylor Series Function
So I am working a a project for my intro C++ class, and I am having some trouble with a function for
MII Trends - add data onto chart object
Hello,
Can anyone please provide some thoughts on my current requirement:
its pretty
random generation
hi
i need help with generating this
numbers from 1-12
i want to generate in ran
Having Problem with Date
l have a submit buttom where user have the possibility to add a date to specify when his message s
get font info from a font file
hello,
Does anyone know how to get font info from a font file ... using php of course !
<
PHP MySQL Return Results Issue
Hi guys,
I'm running joomla and made a module which is using ajax.
Basically i just have a
Access website from only 1 computer...?
One of my customers wants his website to only be accessed by people in which they bought the website
include problem
I have my root folder as:
Code: $root = $_SERVER["SITE_HTMLROOT"]; // the server root<