Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Passing variables to another script (theory)by Anonymous Monk |
on Mar 31, 2004 at 04:37 UTC ( [id://341198]=perlquestion: print w/replies, xml ) | Need Help?? |
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Say I have two files. file1.cgi and admin.cgi . Admin.cgi has a whole bunch, over 20 and will probably become greater than 50 checkboxes that are grouped together. The admin file acts as a configuration/backbone for the other script, something that's common with admin files. The question is, what would be the easiest way to transport the checkbox values into the other script so file1.cgi can use it? What I need to do is store which boxes are checked and pass this somehow to the file1.cgi. The admin can change these values at any time; some times s/he may have one checkbox marked, other times maybe half or all of them. The point of this is I need to check against all these values in file.cgi. The only idea I came up with is using DB_File or SDBM and storing them in a joined string then inside file1.cgi I could split them back into variables. This seems like a tedious task and there must be an easier way. To make this one bit harder, how can I keep the check boxes checked for the next time they log back in? I need the choices they selected to remain the same the next time they access the admin panel, so the method used to pass this to the other script must also store these in a manner I can do this. If you need a better description, let me know and I'll try to revise it. Thank you all for your time.
Back to
Seekers of Perl Wisdom
|
|