Style for the form:
Code:
<!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">
<head>
<style type="text/css">
#page-wrap{
width:200px;
}
label{
float:left;
margin-bottom: 5px;
}
input{
float:right;
margin-bottom: 5px;
}
</style>
</head>
<body>
<div class="text">
<p><img src="http://vicarscafebistro.co.uk/website/Enquiry.jpg" width="155" height="37" /></p>
<div id="page-wrap">
<div id="contact-area">
<form method="post" action="contactengine.php">
<label for="Name">Name:</label>
<input type="text" name="Name" id="Name" />
<label for="City">City:</label>
<input type="text" name="City" id="City" />
<label for="Phone">Email:</label>
<input type="text" name="Phone" id="Phone" />
<label for="Email">Phone:</label>
<input type="text" name="Email" id="Email" />
<p> </p>
<p><label for="Message">Comments:</label><br />
<textarea name="Message" rows="5" cols="33" id="Message" ></textarea> </p>
<p><input type="submit" name="submit" value="Submit" class="submit-button" style="float:left;" />
</form></p>
<div style="clear: both;"></div>
</div>
</div>
<!-- end .text --></div>
</body>
</html>
Notice This line
Code:
<input type="text" name="Phonr" id="Phone" />
Changed to this
Code:
<input type="text" name="Phone" id="Phone" />
The r for e mistype was part of the php failure.
The second error is here, in the php file:
Code:
$Body .= "Comments: ";
$Body .= $Comments;
S/B:
Code:
$Body .= "Comments: ";
$Body .= $Message;