What's really WRONG with my PHP code this time ??? Thanks a lot , 10 points !!?

I am trying to display contents from an HTML form through PHP , I am learning the language from .. it is not working .. HELP would be very much appreciated !

Here's the HTML form

<html>
<head> <title> Collecting Some informations </title> </head>
<body>

<h1> Please provide the following information :</h1>

<form action="display.php" method="post">

First name : *
<input type ="text" name="firstname" size="20" /> <br />
Last name : *
<input type="text" name="lastname" size="20" /> <br />
City : *
<input type ="text" name="city" size="20" /> <br />
<input type="submit" value="Submit" />
<input type="reset" value="Reset" />

</body>
</html>

The PHP code:

<html>
<head> <title> Display the contents </title> </head>
<body>

<h1> The following data was collected: </h1>


<?php

$firstname= $_POST["firstname"];
$lastname= $_POST["lastname"];
$city= $_POST["city"];

<table border="0">
<tr>
<td> First name </td> <td> echo $_POST["firstname"] </td> </tr>
<tr>
<td> Lastame </td> <td> echo $_POST["lastname"] </td> </tr>
<tr>
<td> city </td> <td> echo $_POST["city"] </td> </tr>
</table>
?>
</body>
</html>

As far as I am concerned , I do not see any mistake now but NOTEPAD says this when I rude the code

Parse error: syntax error, unexpected '<' in C:\XAMPP\xampp\htdocs\display.php on line 14


checked line 14 which is <table border="0"> and I can't notice any mistake there
 
Back
Top