This is a part of index.php. This code is used to display the all the products in database.
while($row = mysqli_fetch_array($result)) {?>
<form action="product.php?>" method="post">
<tr class="info">
<td align="center"><h3><?php echo $row['name'];?></h3></td>
</tr>
<tr class="success">
<td align="center"><div class="grow pic"><img src="uploads/<?php echo $row['image'];?>"></div></td>
</tr>
<tr class="info">
<td><?php echo substr($row['description'],0,75);?></td>
</tr>
<tr class="success">
<td align="center"><input name="cart" type="submit" value="More Details"></td>
</tr>
<tr>
<td></td>
</tr>
</form>
<?php
}
?>
There is a another page called product.php. When user click the "More details" button in index.php it will redirect to the product.php.
What I want to do is, I need to pass the correct product id for that page when user click the "more details" button. How to do it?