Torben, Thanks for your help. I got it to work by creating a constructor that took the content as an argument then set the property $this->content = SetContent($content);
Then in my script I instantiated the object with the login form as the content. I created a switch case for the result of the login routine and within each case I re-invoked the constructor with a different argument to change the content. Then when I called the Display() function again, it changed the screen on the browser... I really appreciate all your help! /T on 6/5/03 4:12, Lars Torben Wilson at [EMAIL PROTECTED] wrote: > On Wed, 2003-06-04 at 17:18, [EMAIL PROTECTED] wrote: >> You have the problem right. What do you mean by a "server push"? Sounds >> interesting... >> >> Anyway I have to display something. Since its a login, the user needs their >> interface. I think I'll have to introduce another page... I'd love to >> avoid that though... >> >> /T > > Search for "server push" (use quotes) on google...essentially, it means > that the server can update information in the browser. Unfortunately, it > is extremely limited and usually not worth the hassle. > > My suggestion would be to do something like this: have a page which > shows a login form. The form posts back to itself (the same page). When > there is no input, the script displays a blank login form. If there is > input, the script attempts to validate the login data. If the data > validates, the script somehow calls the next page (sends a redirect > header, or include()s the code, or instantiates that page's class, > etc...). If not, it redisplays the form, perhaps with some added > information about what went wrong. It's important to note that nothing > is ever sent to the browser until all needed information is > known...that way, you always have the option to alter the output, or > send a redirect header, or whatever. > > > Torben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php