I have some product details on a page which are produced dynamically from a database. When the user makes a selection, they choose the number of items they want to purchase from a list box. Each item has a very limited stock - sometimes only 1 or 2.

A form sends the product name and number of items to an external shopping cart. (mals) The user can then return to the page and add more items before checking out. I want to find a way to store the number of each items a user selects so that the display on the page can be updated.

Is there any way to store the value of the list box where the user selects the number of items, before it is sent to the shopping cart?

Without submitting the page, You can't get the selected option's value in php. However, in Javascript, you can access it.

Thanks for your help, I'll set it up with javascript.