in reply to Checkbox parameter not being stored in CGI::Session
I see a few problems
urls are hardcoded ...
debugging via log ... eew
$global_session ... super yuck
random suspicious or die on $! usage not seen in the docs
CGI::Application::Plugin::Session is broken as session_config seems to have no effect
your logic is fudgy, you don't use P/R/G
both collect_data and display_data are the same form, and pretty much the same code, and in both codes you fetch data from the $cgi_query and not from the $session -- this is fudge -- and in both display and collect you save data into session -- display is display
I think having templates and logging and "everything" is confusing you (it confused me), its just a lot of stuff to juggle
You should start with pictures, for example
collectPage presents a form processes form submission if got valid data save data into session redirect via get to displayPage if got invalid data show form again while explaining what data is bad displayPage if session display data from session if no session give link to collectPage
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Checkbox parameter not being stored in CGI::Session
by perlron (Pilgrim) on Oct 13, 2014 at 03:15 UTC | |
by Anonymous Monk on Oct 13, 2014 at 09:29 UTC | |
by perlron (Pilgrim) on Oct 13, 2014 at 09:51 UTC | |
by Anonymous Monk on Oct 13, 2014 at 10:44 UTC | |
by perlron (Pilgrim) on Oct 22, 2014 at 21:01 UTC |