jborgschulte
February 9th, 2007, 09:33 PM
Hello, so I've got a problem with the Flash Based Email Form Using PHP (http://www.kirupa.com/forum/../developer/actionscript/flash_php_email.htm) tutorial. I've done hours of searching through the forums to find the solution, and have not been able to adapt those solutions to help me yet.
Right now, once I click "send" it just gives me a transferring message in the status bar of my browser, but it doesn't ever send an email. I know my host provides PHP. I set up a test PHP file with the following code:
<?php phpinfo() ?> It gives me a page with the information concerning my host's PHP capabilities. So, that's not the problem.
Here's the PHP code I have in a file called "quicknote.php":
<?php
$to = "josh@joribo.com";
$subject = "A Quick Note...";
$headers = "From: " . $_POST["name"];
$headers .= "<" . $_POST["email"] . ">\r\n";
$headers .= "Reply-To: " . $_POST["email"] . "\r\n";
$headers .= "Return-Path: " . $_POST["email"];
$message .= "This message has been sent from your Contact Form\n\n";
$message .= "Name: " . $_POST["name"] . "\r\n";
$message .= "Email: " . $_POST["email"] . "\r\n";
$message .= "Message: " . $_POST["content"] . "\r\n";
mail($to, $subject, $message, $headers);
?>Below, I've also attached a zip of my .FLA that sends the info to the PHP script.
Please advise me what I need to change. Thanks in advance.
Right now, once I click "send" it just gives me a transferring message in the status bar of my browser, but it doesn't ever send an email. I know my host provides PHP. I set up a test PHP file with the following code:
<?php phpinfo() ?> It gives me a page with the information concerning my host's PHP capabilities. So, that's not the problem.
Here's the PHP code I have in a file called "quicknote.php":
<?php
$to = "josh@joribo.com";
$subject = "A Quick Note...";
$headers = "From: " . $_POST["name"];
$headers .= "<" . $_POST["email"] . ">\r\n";
$headers .= "Reply-To: " . $_POST["email"] . "\r\n";
$headers .= "Return-Path: " . $_POST["email"];
$message .= "This message has been sent from your Contact Form\n\n";
$message .= "Name: " . $_POST["name"] . "\r\n";
$message .= "Email: " . $_POST["email"] . "\r\n";
$message .= "Message: " . $_POST["content"] . "\r\n";
mail($to, $subject, $message, $headers);
?>Below, I've also attached a zip of my .FLA that sends the info to the PHP script.
Please advise me what I need to change. Thanks in advance.