I am trying to e-mail a form a user fills out. but it is not working.
Here is my errors messege.
Notice: Undefined variable: UserName in c:\inetpub\wwwroot\service_email.php on line 4
Notice: Undefined variable: UserName in c:\inetpub\wwwroot\service_email.php on line 5
Notice: Undefined variable: D1 in c:\inetpub\wwwroot\service_email.php on line 7
Notice: Undefined variable: LongDescription in c:\inetpub\wwwroot\service_email.php on line 9
Notice: Undefined variable: UserPhone in c:\inetpub\wwwroot\service_email.php on line 9
I am using the POST command in the Form.
Here is my code.
-----HTML Document-----
<form method="POST" action="service_email.php">
<li>What product/service is this request for?<br>
<select size="1" name="D1">
<option>-- Select Product / Service --</option>
<option>Televantage</option>
<option>ECLP</option>
<option>OUTLOOK</option>
<option>Adobe Acrobat</option>
</select><br>
<br>
</li>
<li>Please enter a brief one-line description of the request:<br>
<input type="text" size="55" maxlength="256" name="OneLiner"><br>
(<em><strong>example</strong></em>: "Editor doesn't respond to up-arrow
under image")<br>
<br>
</li>
<li>If there is a particular problem you are reporting, please describe
it clearly:<br>
<textarea name="LongDescription" rows="5" cols="53"></textarea><br>
</li>
<li>Please provide us with the following information in case we need to
contact you: </li>
</ol>
<blockquote>
<p>Name: <input type="text" size="27" maxlength="256" name="UserName">
</p>
<p>Phone: <input type="text" size="27" maxlength="256" name="UserPhone">
</p>
<p>E-mail: <input type="text" size="27" maxlength="256" name="UserEmail">
</p>
</blockquote>
<p align="center"><input type="submit" value="Submit Service Request">
<input type="reset" value="Clear Form"> </p>
</form>
<h5 align="right"><font color="#006633"><a href="#top">Back to Top</a> </font></h5>
</font></td>
</tr>
</Form>
-----END HTML-----
-----PHP Document-----
<HTML>
<?
mail ("mpellet1@ford.com",
"Support Request for $UserName",
"$UserName has requeted support for $D1.
$LongDescription
Please contact user at $UserPhone or UserEmail.
");
?>
</HTML>
-----END of PHP-----
Please help I have gotten this to work before but now I can not figure it out.