Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

(zdog) Re: (3) Maintaining state with

by zdog (Priest)
on May 31, 2001 at 22:15 UTC ( #84681=note: print w/replies, xml ) Need Help??

in reply to Re: (zdog) Re: Maintaining state with
in thread Maintaining state with

Or you can pass the parameters from the previous form to the next form. You can set the parameters by using the param() routine similarly to this:


Update: My bad. You can pass the parameters to the next form by using the hidden input method. (See reply.)

Zenon Zabinski | zdog |

Replies are listed 'Best First'.
Re: (zdog) Re: (3) Maintaining state with
by no_slogan (Deacon) on May 31, 2001 at 22:18 UTC
    But that just stores the value "tomato" in the current CGI object, it doesn't pass it to the next CGI form. You can pass stuff along with hidden fields. In the first cgi,

      print textfield(-name => "foo");

    In the second one,

      print hidden(-name => "foo");

    CGI automatically remembers the value of "foo" that was submitted by the first form, and uses it on the second one.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://84681]
[james28909]: i see the predicament here.
[james28909]: maybe rename it to 'query'
[james28909]: but then you have the others as well
[Lady_Aleena]: Renaming things like get_THAC0 to just THAC0 was easy. These are harder.

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (5)
As of 2017-05-24 04:44 GMT
Find Nodes?
    Voting Booth?