In one page, inside a form, you can have a hidden field of the form
<input type="hidden" name="thing" value="$thing">
and the script invoked by the form then gets the value by
using param (using CGI.pm, of course), i.e.
You can use CGI.pm to produce the code for the hidden field
using something like
but I seem to recall having difficulty getting variables
to interpolate in the value, so I've usually used the explicit first way. (If someone can comment on the interpolation problem, I'd be happy to hear about that...)
The CGI module has built-in handling of "stickiness" (i.e.
maintaining state (and I believe this makes use of hidden fields in a clever way... I don't understand it very well)) but it usually takes me such a lot of
messing around to get it to work properly that I mostly
just use hidden fields myself. That's not meant to detract
from CGI.pm at all - it is a wonderful tool, I just don't
know it well enough. (I always use CGI.pm, I just don't
always use all of the subtleties available.)
The "value" parameter in the articles are setting a hard coded value to each name="member". In this case, the value for name or member is going to be different for every person who completes the form.
How do I write my hidden field in the form so it doesn't pass hard coded values instead it will pass the actual info entered by the person completing the form? I guess what I'm asking is how do I set a value for "member" that is global? I think?.