One of my fields (NAME) on my form keeps coming back empty - Thanks in advance for your help.
here is my sendmail.php
<?php
//Declare the variables
$recipient = "andrew@fredlewis.com";
$subject = "Support Ticket";
$message = "DATE: $frmSupDate \nNAME: $frmSupName \nEMAIL: $frmSupEmail \nPHONE: $frmSupPhone \nSERVICE TYPE: $frmSupType \nDESCRIPTION: $frmSupDesc";
$from = "FROM: $frmSupEmail";
//Contents of form
$frmSupDate =$POST['frmSupDate'];
$frmSupName =$POST['frmSupName'];
$frmSupEmail =$POST['frmSupEmail'];
$frmSupPhone =$POST['frmSupPhone'];
$frmSupType =$POST['frmSupType'];
$frmSupDesc =$POST['frmSupDesc'];
//mail() function sends the mail
mail($recipient,$subject,$message,$from);
//redirect
header ( "Location: http://www.fredlewis.com/" );
?>
here is the html for my form
<div id="formSup">
<form method="post" action="sendmail.php">
<label for="frmSupDate">Date:</label><br />
<input name="frmSupDate" type="text" id="frmSupDate"/><br />
<label for="frmSupName">Name:</label><br />
<input name="frmSupName" type="text" id="frmSupName" /><br />
<label for="frmSupEmail">Email Address:</label><br />
<input name="frmSupEmail" type="text" id="frmSupEmail" /><br />
<label for="frmSupPhone">Phone Number:</label><br />
<input name="frmSupPhone" type="text" id="frmSupPhone" /><br />
<label for="frmSupType">Service Requested:</label><br />
<select name="frmSupType" id="frmSupType">
<option>Select One</option>
<option>PC Repair</option>
<option>Data Recovery</option>
<option>Network Services</option>
</select><br />
<label for="frmSupDesc">Description:</label><br />
<textarea name="frmSupDesc" rows="10" cols="40" id="frmSupDesc"></textarea><br />
<input type="submit" value="Submit Ticket"/> <input type="reset" />
</form>
</div>