How can I create hidden fields in forms (keeping state)?

Use INPUT TYPE=hidden. An example:
<INPUT TYPE=hidden NAME=state VALUE="hidden info to be returned with form">
By now, most browsers can handle the hidden type, but understand that some browsers will fail to hide the field (and probably confuse the user). Note that "hidden" doesn't mean "secret"; the user can always click on "view source".
World Wide Web FAQ