How to make a shopping cart
Posted: Thu Sep 29, 2011 9:48 am
hello sirs,
Kindly, I need some help and explanation: I'm trying to study how to build a shopping cart.
Presently, I have a form with 2-fields.: a product and a quantity field. The product field is a list with options (item1, item2, item3, item4). So a user basically selects and options and enters a value for the "quantity" input field; and then clicks the submit. I have this working ok.
What I want help with is how to display what the user selected in a table (usually called a cart) and how to have it add the users selections to the table - after clicking the submit button.
Ive done some reading about either using / not using a database to store inputs from the user. With the above example, I do not think I need a database. So pls kindly help with how to temporarily store the users input and then display them in a table.
warm regards
Tokunbo
Kindly, I need some help and explanation: I'm trying to study how to build a shopping cart.
Presently, I have a form with 2-fields.: a product and a quantity field. The product field is a list with options (item1, item2, item3, item4). So a user basically selects and options and enters a value for the "quantity" input field; and then clicks the submit. I have this working ok.
What I want help with is how to display what the user selected in a table (usually called a cart) and how to have it add the users selections to the table - after clicking the submit button.
Ive done some reading about either using / not using a database to store inputs from the user. With the above example, I do not think I need a database. So pls kindly help with how to temporarily store the users input and then display them in a table.
warm regards
Tokunbo