I'm having trouble showing the outpup of the post variable. The only thing that showing on my confirm.php page is:

For submit, the value is 'Submit Query'


i'm looking to display the list of books and the quantity inserted in the input box.

Any help would be appreciated.

enter.php

Code:
$result = mysql_query("SELECT * FROM test");

echo '<form action ="confirm.php" method="post">';

echo'<p><table border = "1">';

echo'<tr><td>Title</td><td>CD</td><td>Quantity</td></tr>';

while($row = mysql_fetch_array($result)){
	echo '<tr>';
	echo '<td>'. $row['title'] .'</td>';
	echo '<td>'. $row['cd'] .'</td>';
	echo '<td><input type = "text" /></td>';
	echo '</tr>';
}

echo'</table></p>';
echo'<input name="submit" type="submit" />';
echo'</form>';
confirm.php

Code:
<?php
      foreach($_POST as $key => $value) {
        echo "<p>For " . $key . ", the value is '" . $value . "'.</p>";
      }
?>