I would like to maintain a value in a form when a user clicks a link to a new page.

I understand this can be done with a cookie but I have also read you can do this with hidden form fields. Can anyone tell me how the hidden form field method is coded/HTML'd?