Re: [PHPLIB] adding structure to the chaos From: Kristian Koehntopp (kris <email protected>)
Date: 03/09/00

On Wed, Mar 08, 2000 at 02:53:40PM -0600, Arno A. Karner wrote:
> I was thinking of implamenting some kind of return stack as a session
> variable, but not sure how to get the page i called to do a return
> function upong compleation, then i would have to use some session variable
> for a return value.

You could view a set of web pages as a state machine, and keep
the state as a session variable. Depending on the current page,
current state and the name of the submit button the user pressed
you would determine the next function/operation that being
executed. Unless you are doing relocations (which I think is
ugly), you'd have to run your application under a single URL,
though. Instead of relocation to the next page based on state,
you would include() that page instead - for the user the URL
does never change.

Kristian

-
PHP3 Base Library Mailing List. Send messages to <phplib <email protected>>.
To unsubscribe, send "unsubscribe" to <phplib-request <email protected>> in
the body, not the subject, of your message.