Hi Guys,
I'm using this PHP form script
I would like to send an extra field, i.e. a phone number inside of the email, is this possible?
I'm using this PHP form script
Code:
<?php
$name = $_POST ['name'];
$email = $_POST ['email'];
$subject = $_POST ['subject'];
$message = $_POST ['message'];
$to = "<snip>";
$re = $subject;
$headers = 'From: '.$email.'' . "\r\n" .
'Reply-To: '.$email.'' . "\r\n" .
'X-Mailer: PHP/' . phpversion();
if(!eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,4})$", $email)) {
Echo "Fail Message";
}
else {
mail ($to, $re, $message, $headers);
echo "Your email has been sent. Thank you for your email, we will deal with your email shortly.";
}
?>
I would like to send an extra field, i.e. a phone number inside of the email, is this possible?