Multi-page (State-based) Scripts
Often, a Web-based transaction goes through several stages.
Sometimes useful to implement all stages by a single script.
Such scripts are
- structured as a collection of cases, distinguished by a "state" variable
- each state sets parameter to pass to next invocation of same script
- new invocation produces a new state (different value of "state" variable)
Overall effect: a single script produces many different Web pages.
|