im creating a website made of flash i cant get the form to work i have var and name on the boxes and the following action on the submit button on release geturl to link to the processing form ie name box has the var name assigned to it now releasing the button sends the mail but none of the info is there it looks like this always empty.
is there anyway to get the processing script completely in action script? or to get my form working?
Name:
Phone Number:
Email Address:
[message]
messages:
---
End of message
here is the php
<?php
if (!isset($_POST['submit'])) {
echo "<h1>Error</h1>\n
<p>Accessing this page directly is not allowed.</p>";
exit;
}
$email = preg_replace("([\r\n])", "", $email);
$find = "/(content-type|bcc:|cc

/i";
if (preg_match($find, $name) || preg_match($find, $email) || preg_match($find, $url) || preg_match($find, $comments)) {
echo "<h1>Error</h1>\n
<p>No meta/header injections, please.</p>";
exit;
}
/* form will be sent to these email addresses */
$myemail = "
[email protected]";
/* headers*//*this syntax makes it show up inbox not spam*/
$subject = "subject here";
$headers = 'From:
[email protected]' . "\r\n" .
'Cc:
[email protected]' . "\r\n" .
'Bcc:
[email protected]' . "\r\n" .
'Reply-To:
[email protected]' . "\r\n" .
'X-Mailer: PHP/' . phpversion();
/* syntax// $php item = $action ['$value on form'];*/
/* defines whats included in mail message */
$name = $_POST ['name'];
$phone = $_POST ['phone'];
$email = $_POST ['email'];
$comments = $_POST ['comments'];
/* message how I want it to appear inbox*/
/* defines what form items are*/
$message = "
Name: $name
Phone Number: $phone
Email Address: $email
[message]
message: $comments
---
End of message
";
/* Send the message using mail() function */
mail($myemail,$subject,$message,$headers);
/* Redirect visitor to the thank you page */
header('Location: url');
exit();
?>