if this is your form
<form name="form" method="post" action="page2.php">
<input type="text" name="code">
<input type="submit" name="Submit" value="Submit">
</form>
then on page2.php, the value entered into the text box will be available as $code. So
<? echo "You entered : ".$code."<br>"; ?>
will show you what you entered
To make a dynamic table
<table width="80%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>Code</td>
<td>Value</td>
</tr>
<?
connect to the database
get what you want
for each field you find
{
?>
<tr>
<td><?=$code?></td>
<td><?=$value?></td>
</tr>
<?
}
?>
</table>
Hope that helps
Al