Hi,
I’ve been using the flash email form tutorial on kirupa with success for some time now but have recently installed a site on a server running php5 and the exact same form and flash as doesn’t seem to work any more. My host blames it on php5.
Does anyone know the solution to this? My php script looks like this:
<?php
$sendTo = "paul@calverphoto.com";
$subject = "website email form";
$headers = "From: " . strip_tags($_POST['email']);
$headers .= "<" . strip_tags($_POST['email']) . ">
";
$headers .= "Reply-To: " . strip_tags($_POST['email']) . "
";
$headers .= "Return-Path: " . strip_tags($_POST['email']);
$message = "name:" . "
";
$message .= strip_tags($_POST['name']) . "
";
$message .= "email:" . "
";
$message .= strip_tags($_POST['email']) . "
";
$message .= "telephone number:" . "
";
$message .= strip_tags($_POST['telephone']) . "
";
$message .= "message/request:" . "
";
$message .= strip_tags($_POST['message']) . "
";
mail($sendTo, $subject, $message, $headers);
?>
The flash part is the same as the tutorial posted here with a few extra fields, again something I’ve set up before on a php4 server:
http://www.kirupa.com/developer/actionscript/flash_php_email.htm