in reply to Cascading CGI forms

HTTP is stateless, and each request runs the script from scratch.

If you want persistant data, you have to implement it by storing the value somewhere the script can fetch it from such as in a input field of type hidden, a cookie, or a session.

Replies are listed 'Best First'.
Re^2: Cascading CGI forms
by cmic (Acolyte) on Apr 18, 2005 at 09:31 UTC
    Hi PerlMonks. Finally I resolved my problem. First I am now conscious of what "stateless" means. Second, as I have to save a hash of has, I couldn't use the hidden filed technique. Solution: As I was working with Dbm::DEEP, I have created a temporary table with this module, save info in session one, and retrieve it for the following session. It works. I find this technique a bit clumsy, but I think there is no ohter solution. Many thanks to all.
    -- cmic. Life helps. Perl Too.