Hi
My first time using PHP. I want to just send an email from Flash, but it’s not as simple as I hoped.
In my code it works fine until I change the message variable to a long string. I think there’s a limit? Why would there be a limit? And what is the work around this?
<?php $to = ($_POST['email']); $subject = "Your Answers"; $message = "Hi" . $_POST['name'] . "
";$message .= "Here are your given answers:
";
$message .= ($_POST['message']); ////////// Long string!
$message .= "
---------------------------
"; $message .= "From: " . $_POST['name'] . "Email: " . $_POST['email'] . "
"; if(@mail("$to", "Your Answers", $message, $headers)) { echo "answer=ok"; } else { echo "answer=error"; } ?>
Thanks for any help