Displaying POST variables from a Form

Hi everyone! I really need some help on this.

I have a form that pulls product data from a MySQL db to use. I also have two input fields for the user to enter “percent price markup” or “manual price markup” that I will need to calculate the new price.

Here is the form, but I don’t know how to output all of the variables in a table:

Untitled Document <?php require("constants.php");

$query=“SELECT * FROM products”;



echo “Database Output


while ($i < $num) {

$price=number_format($price, 2, ‘.’, ‘’);
echo "




Image Name Cost Markup
<a href=“images/$image_big” rel=“lightbox”><img src=“thumbs/$image_thumb” width=“129” height=“83” /> $product
<input type=“hidden” name=“price $id” value="$price" />$$price <input type=“text” name=“markup$id” /> <input type=“text” name=“manual$id” />

I am new to PHP and am learning as fast as possible, but I need to complete this project as soon as possible.


Sponsor our Newsletter | Privacy Policy | Terms of Service