I'm trying to use PHP for a simple contact form from a flash movie.
I've set up my movie in flash using input text fields.. and I have a function calling the PHP..
It's working, and I'm getting the email sent to me, but for some reason I'm also getting all this Formating information from the text fields.. This is what is returning in the email... I've put in red what is the input info...
<<TEXTFORMAT LEADING=\"5\"><P ALIGN=\"LEFT\"><FONT FACE=\"Verdana\" SIZE=\"12\" COLOR=\"#000000\" LETTERSPACING=\"0\" KERNING=\"0\">Jeff Rooney</FONT></P></TEXTFORMAT>>
<<TEXTFORMAT LEADING=\"5\"><P ALIGN=\"LEFT\"><FONT FACE=\"Verdana\" SIZE=\"12\" COLOR=\"#000000\" LETTERSPACING=\"0\" KERNING=\"0\">jrooney@billgaines.com</FONT></P></TEXTFORMAT>>
<<TEXTFORMAT LEADING=\"5\"><P ALIGN=\"LEFT\"><FONT FACE=\"Verdana\" SIZE=\"12\" COLOR=\"#000000\" LETTERSPACING=\"0\" KERNING=\"0\">3345 South Street</FONT></P></TEXTFORMAT>>
<<TEXTFORMAT LEADING=\"5\"><P ALIGN=\"LEFT\"><FONT FACE=\"Verdana\" SIZE=\"12\" COLOR=\"#000000\" LETTERSPACING=\"0\" KERNING=\"0\">Cityvilleplace</FONT></P></TEXTFORMAT>>
<<TEXTFORMAT LEADING=\"5\"><P ALIGN=\"LEFT\"><FONT FACE=\"Verdana\" SIZE=\"12\" COLOR=\"#000000\" LETTERSPACING=\"0\" KERNING=\"0\">KY</FONT></P></TEXTFORMAT>>
<<TEXTFORMAT LEADING=\"5\"><P ALIGN=\"LEFT\"><FONT FACE=\"Verdana\" SIZE=\"12\" COLOR=\"#000000\" LETTERSPACING=\"0\" KERNING=\"0\">44567</FONT></P></TEXTFORMAT>
Here is the code I'm using in the PHP document...
Code: Select all
<?php
$sendTo = "info@billgaines.com";
$subject = "Krampf Gallery Reply";
$headers .= "<" . $_POST["name"] . ">\r\n";
$headers .= "<" . $_POST["email"] . ">\r\n";
$headers .= "<" . $_POST["address"] . ">\r\n";
$headers .= "<" . $_POST["city"] . ">\r\n";
$headers .= "<" . $_POST["state"] . ">\r\n";
$headers .= "<" . $_POST["zip"];
mail($sendTo, $subject, $headers);
?>Also, does anyone know how I can set this up to automatically fill in the "From and Reply To" fields in the email ?
Thanks so much if you can help..
B