View Single Post
Old 02-03-2013, 05:30 PM   PM User | #2
sunfighter
Senior Coder

 
Join Date: Jan 2011
Location: Missouri
Posts: 2,396
Thanks: 18
Thanked 352 Times in 351 Posts
sunfighter is on a distinguished road
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>&nbsp;</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;

Last edited by sunfighter; 02-03-2013 at 05:44 PM..
sunfighter is offline   Reply With Quote