Tom: That's not the same thing at all.
If someone used your method, then when the form is submitted, any 'hidden' values are sent as empty
string, when it in fact they should contain some value. We want to hide the value from a user, not null it.
The requirement of the original poster is fuzzy, and its unclear if a value should be submitted for 'hidden' fields or not. But I thought i'd point out that Erics method and your method do NOT produce the same results server-side.
[ November 19, 2003: Message edited by: Mike Curwen ]