Syntactic Confectionery Delight | |
PerlMonks |
Checkbox parameter not being stored in CGI::Sessionby perlron (Pilgrim) |
on Oct 10, 2014 at 17:16 UTC ( [id://1103448]=perlquestion: print w/replies, xml ) | Need Help?? |
perlron has asked for the wisdom of the Perl Monks concerning the following question:
Hi PerlMonks!
This is my first session based CGI::Application and i have encountered a slightly confusing error. As per the session log file, i see that the checkbox value is not getting persisted in the session when i submit a form. I seem to have narrowed down the reason to the fact the query->param('cbox') is not defined and hence not getting set, if checkbox is not "checked" in the html form. I have tested this on 5.20.0 and 5.10.1 (customer version) Here is a Test CGI Application pastebin to reproduce the issue. Test CGI Application Collect_data.TT file for my first page Template File Display_data.TT file for my response page Template File This is the index page for the CGI::Application Index Page Note - A downside of this issue i feel, based on the test results of the actual application is that the Template::Toolkit process method picks up the next value in the %page_data being returned and populates the template. This being my first such perl session based application, please excuse any sub optimal code.
Back to
Seekers of Perl Wisdom
|
|