Forum Moderators: open

Message Too Old, No Replies

submit multiple form

         

Nemo871

10:04 am on Mar 20, 2004 (gmt 0)



I'm building a shoppinh cart with more than one product per page. I set a single form and a submit 'addtocart' button for each item. In each form there is 'quantity' input field. So, if I type different quantity on each one and I submit one of them the forms all get resetted. Basically I lose all the quantity I typed before. Am I doing something wrong?

david

Rambo Tribble

2:20 pm on Mar 20, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Without the code it's hard to be too certain, but here are some things to know.

It sounds like your input fields should be part of one form, rather than separate forms. Submitting a form does not clear the fields, unless a script has been set to clear the fields. In other words, it's not part of the function of HTML forms to automatically reset.