You weren't being very specific, so I can think of at least a couple different possibilities.
Say if you wanted to concatenate id1 and id2 and send the value to another page,
then you may do it like this:
But if you wanted to concatenate id1 and id2 and send the user to a different page depending on the resultant value,
then you could do it like this: