Means, you have a form at another site, where user must put the ID of your site? And that form must be submitted to your site or to other one? Still need lot of details, to be possible to answer.
Users know their usernames, usually, not sure they will know their IDs... But maybe you show them, somehow?