pedro.spy
April 12th, 2006, 02:04 PM
(I don't speak English! I'll try to write something understandable!)
Hi! I made the tutorial "Based Email Form Using PHP", and I add more fields. My .swf file contains the following fields:
Name
Email
Adress
Phone
My PHP script is this:
<?php
$sendTo = "pedro.spy@gmail.com";
$subject = "Contact";
$headers = "From: " . $_POST["name"] ." <" . $_POST["email"] .">\r\n";
$message = $_POST["nome"]. "\n\n". $_POST["adress"]. "\n\n". $_POST["phone"]. "\n\n". $_POST[email];
mail($sendTo, $subject, $message, $headers);
?>
Ok. When I receive a message posted through this Flash Email Form, it's like this:
Pedro Henrique
pedro.spy@gmail.com
279 Leonina de Oliveira Street
(35) 98060079
But I want to receive a message like this:
Name: Pedro Henrique
Email: pedro.spy@gmail.com
Adress: 279 Leonina de Oliveira Street
Phone: (35) 98060079
How can I add something to script to receive the message with those titles (Name: - Email: - Adress: - Phone: )?
Sorry for my English!
Hi! I made the tutorial "Based Email Form Using PHP", and I add more fields. My .swf file contains the following fields:
Name
Adress
Phone
My PHP script is this:
<?php
$sendTo = "pedro.spy@gmail.com";
$subject = "Contact";
$headers = "From: " . $_POST["name"] ." <" . $_POST["email"] .">\r\n";
$message = $_POST["nome"]. "\n\n". $_POST["adress"]. "\n\n". $_POST["phone"]. "\n\n". $_POST[email];
mail($sendTo, $subject, $message, $headers);
?>
Ok. When I receive a message posted through this Flash Email Form, it's like this:
Pedro Henrique
pedro.spy@gmail.com
279 Leonina de Oliveira Street
(35) 98060079
But I want to receive a message like this:
Name: Pedro Henrique
Email: pedro.spy@gmail.com
Adress: 279 Leonina de Oliveira Street
Phone: (35) 98060079
How can I add something to script to receive the message with those titles (Name: - Email: - Adress: - Phone: )?
Sorry for my English!