[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cgiapp] get_previous_runmode() ?


Hi *,

>Hello,

>Could you describe the overall target feature you are trying to
>implement?  Perhaps another way to architect the program flow
>(potentially provided by members of this list) would avoid the
>requirement of dynamic actions based on previous run mode.

I'm writing a CGI, which has three different input modes, but only one
check function for all three of them. This check function gets called
from cgiapp_prerun, whenever in one of the three input modes the "Save"
button is submitted. If the check function finds any error, it returns
false, in which case the runmode should be switched back to where we
came from. If the check function returns true, cgiapp_prerun leaves the
"Save" mode as it is and the save function is called.

>Sincerely,
>Cory Trese

Bye.
Michael.
-- 
Michael Hirmke            | Telefon +49 (911) 557999
Wilhelm-Spaeth-Strasse 52 | FAX     +49 (911) 557664
90461 Nuernberg           | E-Mail  mailto:suppressed
                          | WWW     http://www.hirmke.de/

---------------------------------------------------------------------
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.