Need help with working with form and multiple update

I have created question on stackoverflow, so in order to save some time I will provide just link here, I hope I do not violate some forum rules by doing this. Can some one please check this problem, I am stuck and my boss need me to finish this tomorrow. Thanks ;)

Full question is here