|
|
| P is for Practical | |
| PerlMonks |
Re: Passing CGI form variables back to same page for further updates to same pageby arkturuz (Deacon) |
| on Jan 31, 2008 at 15:55 UTC ( #665374=note: print w/ replies, xml ) | Need Help?? |
|
The values in the Program box are dynamic; they come from the database. Therefore, once the user selects a Funding Group, I need to go back to the database to narrow down what options they can select for Program. Maybe it would be better (if the corresponding database query is not too expensive) to generate the whole options thing from database, and narrow options per item via JavaScript. It would very simplify your data processing job on the server-side program, as you just have to process submitted data, and not decide whether to display more options to the user, which one and when. It seems more complicated. Also, for the more complicated form processing jobs, maybe you should consider using a powerful CGI::FormBuilder module. As of CGI::Application, you can always install it in local directory under your file-system privileges.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||