in reply to Sub call isn't returning values

Did you realize that you're constructing two CGI objects? You only need one, especially as when you create the second one, you've already consumed all of the input.

Further, you're mixing the procedural and the method calls in CGI. Choose one or the other.

I suggest passing $CGI to call_vars and using that within the function.

Replies are listed 'Best First'.
Re: Re: Sub call isn't returning values
by Lori713 (Pilgrim) on Mar 06, 2004 at 00:14 UTC
    Thanks for helping me realize I had two CGI objects. I had misunderstood how CGI works with regard to objects (I was thinking each field was its own object).

    I knew I was not getting data the second time around, but I didn't understand why. I read (for the nth time) the CGI.pm docs (I have them printed out because I refer to them so often). I understand better now the differences between procedural and method, but it'll take some more studying to completely figure it out. I didn't see where I had mixed up my calls.

    I responded to merlyn's comments above and was able to get the code working by copying my hidden field line in my template's main form area to the button form area.

    Thanks again for your help!

    Lori