Home > Archive > PERL CGI Beginners > March 2005 > Re: Unsticky fields with CGI? (Sorry)
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Re: Unsticky fields with CGI? (Sorry)
|
|
| Jan Eden 2005-03-11, 8:55 am |
| Hi,
should have read perldoc *thoroughly*, sorry:
>Note, that just like all the other form elements, the value of a
>hidden field is "sticky". If you want to replace a hidden field with
>some other values after the script has been called once you'll have
>to do it manually:
>
>$query-> param('hidden_name','new','values','here
');
Thanks,
Jan
--=20
If all else fails read the instructions. - Donald Knuth
| |
| Randal L. Schwartz 2005-03-11, 3:55 pm |
| >>>>> "Jan" == Jan Eden <lists@janeden.org> writes:
Jan> Hi,
Jan> should have read perldoc *thoroughly*, sorry:
[color=darkred]
Or, you can call $query-> (why are you using the object form?) delete('name')
Then the default listed in your field generator will be used.
--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!
|
|
|
|
|