TrickaC14
Registered Member
- Jul 23, 2008
- 67
- 21
PHP:
if($_POST['name']!='' && $_POST['company']!='' && $_POST['telephone']!='' && $_POST['e_mail']!='' && valid_email($_POST['e_mail'])==TRUE && strlen($_POST['message'])>30)
{
$to = '[email protected]';
$headers = 'From: '.$_POST['e_mail'].''. "\r\n" .
'Reply-To: '.$_POST['e_mail'].'' . "\r\n" .
'X-Mailer: PHP/' . phpversion();
$subject = "Message";
$message = htmlspecialchars($_POST['message']);
Right now when the contact form is submitted it only sends the message, I want all of the other info to be in the email as well like, company, the persons name, phone number, etc, with this info how would i get it to send the other info as well? Thanks