Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

(zdog) Re: Maintaining state with

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

in reply to Maintaining state with offers a good interface for dealing with cookies. You should use those to store information on the users' computers and easily retrieve it for the script. The CGI documentation should tell you how to use those.

Zenon Zabinski | zdog |

Comment on (zdog) Re: Maintaining state with
Replies are listed 'Best First'.
Re: (zdog) Re: Maintaining state with
by nysus (Deacon) on May 31, 2001 at 22:10 UTC
    Is this the best way to handle this? What if cookies are turned off?

    $PM = "Perl Monk's";
    $MCF = "Most Clueless Friar";
    $nysus = $PM . $MCF;

      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 |

        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://84673]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (10)
As of 2015-11-29 22:31 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (754 votes), past polls