Hi i am creating a shopping cart using php & mysql.
After querying the database for certain products, each product row from the database is printed out on the page.
I would like to create a buy button using a form for each product row printed out, the form also has to send variables in the hidden fields of the form
The problem is i dont know how to set the hidden field value to a variable for example
form submit addtocart.php
hidden field value"$price"
hidden field value"$product"
Can anyone help