Hi, I am receiving emails from my form on my website however, within the email, the files does now give me the actual data, only the filed titles.
Can anyone help me resolve this?
Thanks in advance
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Untitled Document</title>
<style type="text/css">
.back {
font: 24px Calibri;
color: #000;
text-decoration: none;
}
</style>
</head>
<body>
<?php
$to='brweb@kipcreations.net';
$subject='Registration Confirmation';
$headers = "From: $email \r\n";
$headers .= "Content=type: text/html\r\n";
$name=$_POST['Name'];
$age = $_POST['Age'];
$height = $_POST['Height'];
$weight = $_POST['Weight'];
$phone=$_POST['Phone'];
$email=$_POST['Email'];
$college = $_POST['College'];
$strengths = $_POST['Strengths'];
$position=$_POST['Position'];
$pg = $_POST['Pg'];
$sg = $_POST['Sg'];
$sf = $_POST['Sf'];
$pf = $_POST['Pf'];
$c = $_POST['C'];
$proteams = $_POST['Proteams'];
$deposit = $_POST['Deposit'];
$full = $_POST['Full'];
$number=$_POST['Math'];
$message="Name: ".$name . "\r\n" . "Age: " .$age . "\r\n" . "Height" .$height . "\r\n" . "Weight: " .$weight . "\r\n" . "Phone: " .$phone . "\r\n" . "Email: " .$email . "\r\n" . "College: " .$college . "\r\n" . "Strengths: " .$strengths . "\r\n" . "Position " .$position . "\r\n" . "Pg " . $pg . "\r\n" . "Sg " . $sg . "\r\n" . "Sf " . $sf . "\r\n" . "Pf " . $pf . "\r\n" . "C " . $c . "\r\n" . "Proteams: " . $proteams . "\r\n" . "Deposit: " . $deposit . "\r\n" . "Full " . $full ;
if ($number==10)
{
mail($to,$subject,$message, $headers, 'From');
echo 'Thanks for registering. See you soon!';
}
else
{
echo 'Did you answer the math question? Your registration was not sent.';
}
?><style type="text/css">
.back {
font: 24px Calibri;
color: #000;
text-decoration: none;
}
</style>
<br />
<br />
<a href="protryouts.html" class="back">
back to Rowsom Sports
</a>
</body>
</html>