I feel it is difficult. Back at the server you only have the data the
browser sends you. If I understand what you are saying, your problem is
to write some javascript which finds some value(s) which only appear in
the user's browser in the DOM or in the headers - not sure - and
manipulate the DOM to save it somewhere before the user hits [Submit].
I'm interested to see how you do this so if you figure it out please
post your solution.
Cheers
Mike