Hi Jason --
> I need a way to pass parameters between the scripts. The
> logical choice
> is through the user's session, but that makes more than a few places
> that I would have to check to clear the message field if it
> is not needed.
>
> Is there something simple I'm missing?
(That is certainly the same question I would ask -- stress on the
"simple" part. I am a fan of simplicity.)
Unfortunately, I don't have a more simple suggestion for you. The
ability to send messages between requests, screens, or cgi-apps is a
tough one. In the last couple years the best system I've used has been
the architecture devised by Sam Tregar, built on Apache::Session. It
works in essentially the exact manner you describe -- messages are
pushed into the user's session, and are then pulled out on the next
request and displayed on the top of the page.
The only improvement I can suggest is that you centralize the display of
messages in a Perl module. For instance, you might create a CGI-App
super class and override load_tmpl() to put pending messages at the top
of the page.
TTYL,
-Jesse-
--
Jesse Erlbaum
The Erlbaum Group
suppressed
Phone: 212-684-6161
Fax: 212-684-6226
---------------------------------------------------------------------
Web Archive: http://www.mail-archive.com/suppressed/
http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed
Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.