i'm using a simple contact form which uses Flash and PHP.
At the moment it does every thing it's supposed to, like forwarding the message to my email etc. but i need to add a few extra fields.
I have few fields labeled 'message', 'telephone' and 'time' but only the details in the message field get delivered to my email
How do i add in 'telephone' and 'time' to the code below?
Here's the PHP i'm using
Code: Select all
<?php
$sendTo = "myemail@hotmail.com";
$headers = "From: " . $_POST["firstName"] ." ". $_POST["lastname"] . "<" . $_POST["email"] .">\r\n";
$headers .= "Reply-To: " . $_POST["email"] . "\r\n";
$headers .= "Return-path: " . $_POST["email"];
$message = $_POST["message"];
mail($sendTo, $subject, $message, $headers);
?>