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.