Name all your input boxes the same thing, and include a similar level hidden input: <input type="hidden" name="sku[]" value="abc123" /> <input type="text" name="qty[]" value="1" /> <input type="hidden" name="sku[]" value="abc321" /> <input type="text" name="qty[]" value="2" />
on your POST $_POST['sku'] && $_POST['qty'] will be arrays, and the ordering will be the same so you can be sure of what index position/sku the qty is for. On 9/14/07, Ji H. Park <[EMAIL PROTECTED]> wrote: > > *The question: "How would you have multiple text input forms (on > shopping cart page) with different inputted data (product quantities) > submitted for querying the database (for changing the quantity of > multiple products in the shopping cart at the same time)?**"* > > *Here is an ideal example to clarify the matter:* > When a customer wants to change quantities of multiple products all at > once in the shopping cart, all the quantities has to be changed at the > same time just by clicking a button called (e.g. Update Quantity). > > *Issue*: Currently I have update quantity buttons for each product, > which isn't convenient. > > I would appreciate any tips, techniques, comments, or reference to any > website regarding this issue at your repository, thanks! >