All you need to do is:
<input type="hidden" name="CartCmd" id="CartCmd" value="addMulti" /><!--@Ecom:Product.Form.Multi.HiddenFields-->
name="Quantity<!--@Ecom:Product.LoopCounter-->To finish things off then simply let users submit the form when adding products to the shopping cart, i.e. the "Add to cart" link as displayed in the following:
<a href="javascript:document.multiForm.submit();"><img src="files/system/shop_addtocart.jpg" alt="Add to cart" border="0" /></a>