I have attempted to follow the above in several different ways and keep getting Syntax error on the line that has <div id="ans_box">.
I have put the #ans_box into my css, added it to the action.php, etc. but nothing seems to work. Can someone help please? I have attached my latest code.
<HTML>
<!DOCTYPE HTML>
<html>
<head>
<meta charset="UTF-8">
<title>FoodLogiQ Code Challenge responses</title>
<style type='text/css'>
#ans_box
{
position:relative;
float:left;
margin-left:1%;
width:40%;
padding:10px;
border:1px solid black;
}
</head>
<body>
<?php
//default fields to be printed from the FooodLogiQ form
echo "<h2>FoodLogiQ Employee Application Information</h2>";
echo "<h3>Contact Information</h3>";
echo "<strong>First Name: </strong> " . $POST['fname']. "<br />";
echo "<strong>Last Name: </strong> " . $POST['lname']. "<br />";
echo "<strong>Address: </strong> " . $POST['address']. "<br />";
echo "<strong>City: </strong> " . $POST['city']. "<br />";
echo "<strong>State: </strong> " . $POST['state']. "<br />";
echo "<strong>Zip: </strong> " . $POST['zip']. "<br />";
echo "<strong>Phone: </strong> " . $POST['phone']. "<br />";
echo "<strong>Email: </strong> " . $POST['email']. "<br />";
echo "<h3>Response to Questions</h3>";
<div id="ans_box">
echo "<strong>Question 1: </strong>" . $POST["message"]."\r\n <br />";
echo "<strong>Question 2: </strong>" . $POST["message2"]."\n <br />";
echo "<strong>Question 3: </strong>" . $_POST["message3"]. " <br />";
</div>
?>
</body>
</div>
</html>
</HTML>