How to pass URL parameter to form submission

How to pass URL parameter to form submission

What's the best way to pass a URL parameter to a form submission? For example, in the following URL, we'd like to pass 'cid' and 'eid':

domainname.com?cid=12623&eid=fwa3