Newbie.. simple _PPOST email form...

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
hedjunta
Forum Newbie
Posts: 1
Joined: Tue Mar 25, 2008 11:48 am

Newbie.. simple _PPOST email form...

Post by hedjunta »

Hi PHP gurus.. I hope someone could help with a simple email form question..

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
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: Newbie.. simple _PPOST email form...

Post by Christopher »

(#10850)
Post Reply