Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Passing CGI form variables back to same page for further updates to same page

by arkturuz (Curate)
on Jan 31, 2008 at 15:55 UTC ( #665374=note: print w/ replies, xml ) Need Help??


in reply to Passing CGI form variables back to same page for further updates to same page

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.


Comment on Re: Passing CGI form variables back to same page for further updates to same page
Re^2: Passing CGI form variables back to same page for further updates to same page
by Lori713 (Pilgrim) on Feb 04, 2008 at 14:27 UTC
    Thank you for your suggestion. I'm now looking into populating the select boxes with all options, and then using Javascript to remove the items I don't want. I am currently tripping over IE's refusal to recognize certain javascript actions on their select boxes.

    Unfortunately, Javascript is NOT my strong suit and I've posted some questions on some Javascript forums to see if I can get some help in that area.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://665374]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (3)
As of 2014-12-29 00:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (183 votes), past polls