I have only managed a quick look, but it looks as though your 'add to cart' form doesn't have the size and colour lists in it, they are in separate forms called form1 and form 2.
you need to have these lists in your add to cart form, so when you press the add to cart button, it passes the post variables from the form to the code