Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

passing flags between forms

Status
Not open for further replies.

elixabete

Programmer
Jul 25, 2001
4
US
I have a Perl/CGI script that generates four different HTML forms. I am passing values among them by using hidden fields. However I have noticed that I am not able to maintain the value of the "flag" I have created in order to monitor the frequency of one of the variables. Does anyone know why the flag variable gets reset?

Any comment will be appreciated.

Thank you

Eli
 
From one call to a CGI program to the next, the program has no idea about what it just did. Each instance of the program running is completely indepedent. If you are setting a flag in the code and expecting it to increment with each call to the program, that won't work (unless you are rewriting it to disk after each run).

If you are new to Tek-Tips, please use descriptive titles, check the FAQs,
and beware the evil typo.
 
That's difficult to answer without more information. Tracy Dryden
tracy@bydisn.com

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard.
 
Thank you "goBoating".
And how do I rewrite it back in the disk? I have tried positioning the variable in different locations within the script and that did not work.

eli
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top