Hi Richard > >> [% FOREACH type IN [ 'INFO', 'WARNING', 'ERROR' ] %] > >> [% IF c.flash.has_key(type) %] > >> <p>[% c.flash.get(type) %]</p>, etc > >> > >> Only the first 'type' (INFO in this case) gets printed, even though in > >> a test script I put all 3 in. > > > > That should work. You should be able to call get() as many times as you > > want. It does not change the data in any way. If you put [% > > c.flash.dump %] in your template, does it show all the correct data? > > It does. If I put it above the FOREACH block, it stops any flash > messages appearing in the FOREACH block. But if I put it underneath the > FOREACH block then I get output from both. And if I put it above and > below, I only get output from the top one. It's making my head hurt!
Also, I'm not using flush either for the session or that flash. -- Ron Savage [EMAIL PROTECTED] http://savage.net.au/index.html ##### CGI::Application community mailing list ################ ## ## ## To unsubscribe, or change your message delivery options, ## ## visit: http://www.erlbaum.net/mailman/listinfo/cgiapp ## ## ## ## Web archive: http://www.erlbaum.net/pipermail/cgiapp/ ## ## Wiki: http://cgiapp.erlbaum.net/ ## ## ## ################################################################
