Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: (zdog) Re: (3) Maintaining state with CGI.pm

by no_slogan (Deacon)
on May 31, 2001 at 22:18 UTC ( [id://84682]=note: print w/replies, xml ) Need Help??


in reply to (zdog) Re: (3) Maintaining state with CGI.pm
in thread Maintaining state with CGI.pm

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?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (7)
As of 2024-04-23 08:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found