how do i show inputted data in an email... I can't see what people inputted...
And another question is how do I show the data all styled?
here is the code responsible for styling and what I want to see... but i don't get this... instead I get something else... so i might have to send you guys the link so you guys can see...
<?php
$fn = $_POST['fn'];
$name = $_POST['name'];
$lastname = $_POST['lastname'];
$email = $_POST['email'];
$phone = $_POST['phone'];
$comments = $_POST['comments'];
mail($to, $subject, $message, $headers);
$to = "gmail@gmail.com";
$subject = "Form Submission";
$headers = "From: " . strip_tags($_POST["req-email"]) . "\r\n";
$headers .= "Reply-To: ". strip_tags($_POST["req-email"]) . "\r\n";
$headers .= "CC: gmail@yahoo.com.com\r\n";
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content=Type: text/html; charset=ISO-8859-1\r\n";
$message = "<html><head>";
$message = "<style>";
$message = "h1 {color:#blue;}";
$message = "table {border:1px solid black;}";
$message = "</style></head><body>";
$message = "<h1>Hello, this form has been submitted!</h1>";
$message .= '<img src= "logo.png" />';
$message .= '<table rules="all" style="border-color: #ffb300;" cellpadding="10">';
$message .= '<tr style="background: #ffb300;"><td><strong>Name:</strong> </td><td>' . strip_tags($_POST['req-name']) . '</td></tr>';
$message .= '<tr><td><strong>Email:</strong> </td><td>' . strip_tags($_POST['req-email']) . '</td></tr>';
$message .= '<tr><td><strong>Phone:</strong> </td><td>' . strip_tags($_POST['req-phone']) . '</td></tr>';
$message .= '<tr><td><strong>Comments:</strong> </td><td>' .strip_tags($_POST['comments']) . '</td></tr>';
$message .= "</table>";
$message .= "</body></html>";
?>