You are getting bit by the sticky widgets "feature" of CGI.pm. Change the following line: $output .= $q->hidden(-name => 'rm', -value => 'mode2');
To: $output .= $q->hidden(-name => 'rm', -value => 'mode2', -override => 1); And your problem should go away (there are a couple of other lines like this as well that need to be changed). I would recommend that you scrap the CGI.pm HTML generation functions and use a Template module like HTML::Template (or any of the other template modules on CPAN) instead. You will not regret that decision. Read the CGI.pm docs for more info on sticky widgets... Cheers, Cees Quoting "Melissa D. Binde" <[EMAIL PROTECTED]>: > I've spent several hours on this. > > I'm using CGI::Application 3.1 and perl 5.6.1. > > > I can't seem to create 'modes' that are more than one level deep. i.e., > when I have mode1 -> mode2 -> mode3, no forms I create on mode2 are > referencing mode3. The source, when viewed in my webbrowser, actually has > 'mode2' in the form parameters rather than 'mode3'. > > I search dejanews and google to see if I could find similar reports but I > couldn't. > > I must be doing something wrong, because I can't figure out how anyone could > be using this. > > I've reduced the code down to the minimum that will reproduce the problem. > It is attached. > > You can see it on my webserver at: > > http://www.mbinde.com/cgi-bin/telephone/foo.cgi > > > -M. > --------------------------------------------------------------------- Web Archive: http://www.mail-archive.com/[EMAIL PROTECTED]/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
