Processing Form

Processing Form

I am trying to process a order form.  There are x orders for a customer.  If they update one order and submit that order to update it, I would like to update all fields for that order.  What is the best way to get those values, and submit them?  Would it be Jquery, or PHP?

  1. Product Name: '.prodName($prodID).'<br />
                    Quantity: <input name="quantity" type="text" value="'.$quantity.'" size="2" maxlength="2" /><br />
                    Comments: '.$comments.'<br />
  2. echo '<input name="submit" id="update'.$orderID.'" type="submit" value="Save Changes" class="sbtBtn" />';

Maybe I could add the order id to the end of the fields, look for all of those elements, then put them into an array?