Seems like, in any case, this is something that should be done via server-side coding.
So if that's true, just send the info from the first page to the server (possibly in the form of <input type=hidden> field(s)?) and then let the server dump it into the appropriate spot in the "new webpage".
An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.