Hey guys I have this form on a website that will be sent to an email after the user submits the form…it shows up in the email inbox fine…however the message doesn’t show anything…I have no clue….also How would I redirect the php page after sending it to the email?..thanks ahead of time for the help guys
CODE: mailform.php (the html form is really basic you can get what it is just from the top part of the code)
<?php
$firstName = $_POST[‘firstName’];
$lastName = $
$email = $_POST[’email’];
$phoneNumber = $
$previouscustomer = $_POST[‘previouscustomer’];
$message = $
$to = ‘
$subject = ‘Steam King got a new message!’;
$messageBody = ‘$message’ . ‘, ‘;
$headers = ‘MIME-Version: 1.0’ . “rn”;
$headers .= ‘Content-type: text/html; charset=iso-8859-1’ . “rn”;
$headers .= ‘To: Steam King <
$headers .= ‘From: $email’ . “rn”;
mail($to, $subject, $messageBody, $headers);
?>