For me the big problem is action='foo.php'
Unless I am mistaken, any submit button would send the form to foo.php by POST, so I would need a second form to have an alternate action page.
I made a table to show the user's contents in the shopping cart, with a text box for them to alter their item quantities. The submit button for the form is the checkout button, but how would I make another button called update to send the form to a different page to change the shopping cart details if they altered their quantities?
About the only way I can figure is to query the shopping cart table again and make a second form but not show anything other than the submit button, which would be the second button.
What do you guys think? I've been beating my brain over this for two days now.
Any help would be appreciated.