I set up mailer process following a tutorial and everything works correctly. The problem is, none of the inputted values ($value) get sent to my email, only the form. In other words, a blank form is sent to my email without any inputted information.
Is this a hosting problem or something wrong with my code? I use sitebuilder.com.
<?php
/* Subject and Email Variables */
$emailSubject = $name;
$webMaster = 'mail@pigaming.net';
/* Gathering Data Variables */
$nameField = $_POST['name'];
$emailField = $_POST['email'];
$ageField = $_POST['age'];
$timezoneField = $_POST['timezone'];
$gameField = $_POST['game'];
$othergamesField = $_POST['othergames'];
$whyField = $_POST['why'];
$gaminghistoryField = $_POST['gaminghistory'];
$body = <<<EOD
<br><hr><br>
Name: $name <br>
Email: $email <br>
Age: $age <br>
Time Zone: $timezone <br>
Main Game: $game <br>
Other Games: $othergames <br>
Why Join PI?: $why <br>
Gaming History: $gaminghistory <br>
EOD;
$headers = "From: $email\r\n";
$headers .= "Content-type: text/html\r\n";
$success = mail($webMaster, $emailSubject, $body, $headers);
/* Results rendered as HTML */
$theResults = <<<EOD
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/main_triple_column.dwt" codeOutsideHTMLIsLocked="false" -->
<head>
<script type="text/javascript">
window.google_analytics_uacct = "UA-9962170-5";
</script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- InstanceBeginEditable name="doctitle" -->
<title>Phoenix Ignition: Gaming Community</title>
<!-- InstanceEndEditable -->
<style type="text/css">
<!--
body {
background-color: #000000;
background-image: url();
background-repeat: repeat-x;
}
-->
</style>
<link href="css/layout.css" rel="stylesheet" type="text/css" />
<script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
<link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
.style1 {
font-size: 12px;
color: #FF9000;
}
-->
</style>
<!-- InstanceBeginEditable name="head" --><!-- InstanceEndEditable -->
</head>
<body>
<div id="wrapper">
<div id="logo"><img src="images/logo.png" alt="Logo" width="400" height="100" /></div>
<div id="navigation">
<ul id="MenuBar1" class="MenuBarHorizontal">
<li><a href="home.html">HOME</a> </li>
<li><a href="about.html">ABOUT</a></li>
<li><a class="MenuBarItemSubmenu" href="#">MEMBERS</a>
<ul>
<li><a href="application.html">APPLICTATION</a></li>
<li><a href="officers.html">OFFICERS</a> </li>
<li><a href="members.html">MEMBERS</a></li>
<li><a href="mvp.html">MVP</a></li>
<li><a href="#">CODE OF CONDUCT</a></li>
</ul>
</li>
<li><a href="#" class="MenuBarItemSubmenu">GAMES</a>
<ul>
<li><a href="#" class="MenuBarItemSubmenu">XBOX</a>
<ul>
<li><a href="callofduty.html">CALL OF DUTY</a></li>
</ul>
</li>
<li><a href="#" class="MenuBarItemSubmenu">PC</a>
<ul>
<li><a href="warhammer.html">WARHAMMER ONLINE</a></li>
<li><a href="teamfortress.html">TEAM FORTRESS 2</a></li>
<li><a href="starwars.html">STARWARS: THE OLD REPUBLIC</a></li>
</ul>
</li>
</ul>
</li>
<li><a href="#" class="MenuBarItemSubmenu">COMMUNICATION</a>
<ul>
<li><a href="contact.html">CONTACT</a></li>
<li><a href="http://pigaming.**********.com/forum.htm">FORUMS</a></li>
</ul>
</li>
</ul>
</div>
<div id="bodyArea">
<div id="left"><!-- InstanceBeginEditable name="left_center" --><!-- InstanceEndEditable --></div>
<div id="center"><!-- InstanceBeginEditable name="center_content" -->
<p>Your application has been successfully submitted. Please give us a few days to look it over, and we will send a responce email. </p>
<p> </p>
<p>While your waiting, please introduce yourself in our forums and take a look at the rest of our site.</p>
<p> </p>
<p>Thank you for your interest in Phoenix Ignition. We look forward to dominating with you!</p>
<!-- InstanceEndEditable --></div>
<div id="right"><!-- InstanceBeginEditable name="right_content" --><!-- InstanceEndEditable --></div>
</div>
<div id="copyright">
<div align="center" class="style1">Copyright 2010 Phoenix Ignition Gaming Community All Rights Reserved</div>
</div>
</div>
<script type="text/javascript">
<!--
var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
//-->
</script>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-9962170-5");
pageTracker._trackPageview();
} catch(err) {}</script>
</body>
<!-- InstanceEnd --></html>
EOD;
echo "$theResults";
?>