
October 6th, 2009, 08:43 PM
|
|
Registered User
|
|
Join Date: Oct 2009
Posts: 2
Time spent in forums: 2 m 28 sec
Reputation Power: 0
|
|
|
noob - My mail.php wont send back response in flash
Hi, really need help on this one. I have a flash contact form and a mail.php file. Both are in the same folder. When i open up the contact form alone, the php file sends back a response. However when i access the same flash form in a full flash interface website, the form still gets sent to my email but no response confirmation from the php file.
Here is the flash form:
Code:
on (release) {
if (!email.length || email.indexOf("@") == -1 || email.indexOf(".") == -1) {
results = "Please check your e-mail address.";
} else if (!message.length) {
results = "Please enter your message.";
} else if (!name.length) {
results = "Please enter your name.";
} else {
loadVariablesNum("mailform.php", 0, "POST");
results = "Sending, One Moment...";
}
}
And here is the php file:
PHP Code:
<?php
$TextVariable = '&results=';
$response = 'Data Sent. Thank You..';
echo $TextVariable;
echo $response;
/* Message */
$name = $_REQUEST["name"];
$email = $_REQUEST["email"];
$message = $_REQUEST["message"];
$to = "mymail@hotmail.com";
$msg = "$name\n\n";
$msg2 = "Sender Message: $message\n";
mail($to, $msg, $msg2, "From: My Website\nSender Email: $email\n");
?>
Is it the Variable level problem in flash? Everything works except the response when i load the contact form in another f
|