
perlFun
User
Mar 11, 2015, 10:57 AM
Post #8 of 10
(4498 views)
|
Re: [perlFun] Passing more than one variable in Perl CGI module
[In reply to]
|
Can't Post
|
|
Also, I am just trying to make sure - is this new CGI::Session module really necessary? I think what I want to accomplish is actually very simple, but perhaps my problem statement wasn't clear. This is essentially what I want to be able to do: I want to ask the user two questions: (1) what directory do you want to access based on the answer to that question, I ask them another question (2) what file in the directory do you want to access So the way it works: the CGI script is called the first initial time. The user answers question (1) by filling in a form, and ->submit gets executed. Once that ->submit is executed, the script is being called for the second time, and I have the answer to question (1) as a param. On this second call to the script, I am giving them a new form field (a drop down menu) so they can answer question (2). They answer question (2) and press submit, so that the script is called the third time. At this third call, I want to be able to have the answers to (1) and (2) available as parameters. I hope that makes sense. (Note, I understand how to generate the drop down menus, etc., it's just understanding how to make sure I have the parameters, that I am struggling with). Also note, I don't actually care about having redirects, etc. That was just legacy code, so I had kept it in.
(This post was edited by perlFun on Mar 11, 2015, 10:58 AM)
|