When you say that the first two fields are hidden at the point that you submit do you mean 'disabled'? If so then they won't be posted as part of the form data.
To circumvent this add an onsubmit event handler to your form which enables the fields prior to posting.
Steve