i am trying to create a simple mail form in flash to be sent through php.
the actionscipt:
on (release) {
getURL("http://www.dw20.co.uk/pages/contact_form.php", "\"\"", "POST");
}
the php:
<?
$name = $_POST["name"];
$email = $_POST["email"];
$to = "dan@dw20.co.uk";
$subject = "Test mail";
$message = "Hello! This is a simple email message.";
$from = "$email";
$headers = "From: $from";
mail($to,$subject,$message,$headers);
echo "Mail Sent.";
?>
i have set the input fields with variable names etc but it does not work and when i click submit, the url that is loaded comes up like this:
http://www.dw20.co.uk/pages/contact_form.php?name=%3CTEXTFORMAT+LEADING%3D%222%22%3E%3CP+ALIGN%3D%22LEFT%22%3E%3CFONT+FACE%3D%22Liberation+Sans%22+SIZE%3D%2212%22+COLOR%3D%22%23000000%22+LETTERSPACING%3D%220%22+KERNING%3D%220%22%3Edan%3C%2FFONT%3E%3C%2FP%3E%3C%2FTEXTFORMAT%3E&email=%3CTEXTFORMAT+LEADING%3D%222%22%3E%3CP+ALIGN%3D%22LEFT%22%3E%3CFONT+FACE%3D%22Liberation+Sans%22+SIZE%3D%2212%22+COLOR%3D%22%23000000%22+LETTERSPACING%3D%220%22+KERNING%3D%220%22%3Eeggbury%40hotmail.com%3C%2FFONT%3E%3C%2FP%3E%3C%2FTEXTFORMAT%3E
you can try the form at: http://www.dw20.co.uk/index2.php under ‘contact me’
the email sends fine with the information but along with the email address and name i get this also attached to it:
TEXTFORMAT LEADING=\"2\"P ALIGN=\"LEFT\"FONT FACE=\"Liberation Sans\" SIZE=\"12\" COLOR=\"#000000\" LETTERSPACING=\"0\" KERNING=\"0\"/FONT/P/TEXTFORMATTEXTFORMAT LEADING=\"2\"P ALIGN=\"LEFT\"FONT FACE=\"Liberation Sans\" SIZE=\"12\" COLOR=\"#000000\" LETTERSPACING=\"0\" KERNING=\"0\"/FONT/P/TEXTFORMAT
any help would be great, thanks