in reply to Re^3: Global Variables Not Acting Global
in thread Global Variables Not Acting Global

Only one gets set at a time. There is a form on the bottom with 2 submit buttons. Depending on which button redisplays the form, CurIDPtr is incremented or decremented. Problem is, the value of CurIDPtr is reset every time the form loads. I think I just figured that part out...
  • Comment on Re^4: Global Variables Not Acting Global

Replies are listed 'Best First'.
Re^5: Global Variables Not Acting Global
by moritz (Cardinal) on Apr 21, 2011 at 16:24 UTC
    Problem is, the value of CurIDPtr is reset every time the form loads.

    Of course. Each page load starts the CGI script anew, and the variable, while global, is not persistent.