On Wed, 2003-06-04 at 14:43, [EMAIL PROTECTED] wrote: > All ye noble Knights of PHP: > > Got an interesting problem, > > I am creating a login routine for my PHP website. Each page is an extension > of the root page object. I am creating a loginpage.php which is an object > with a constructor: > > class Login extends Page > { > > function Login($file) > { > if(isset($file)){ > if(!isset($this->content)){ > $this->content = $this -> Display($this -> SetContent($file)); > print ($this->content); > } else { > $this -> DisplayNothing(); > $this->content = $this -> Display($this -> SetContent($file)); > print ($this->content); > } > } else { > mysql_error(); > } > } > > Note the DisplayNothing(); function call, I am attempting to remove what is > currently displayed on the browser window and replace it with new content. > I am trying to do this by invoking the constructor in another script with a > different argument.
To modify the browser window content after you've already sent it, you'd need to use one of client-side scripting, server push, or client pull. In general, however, once PHP has sent output to the browser, it's gone. The browser has it, and that's it. :) Perhaps you could defer sending your content to the client until after all your tests have passed and the script knows what it needs to display? Pardon if I've misunderstood the problem. Torben > It is not working and I am wondering is anyone can give me some insight into > morphing an object? > > > Thanks!/T -- Torben Wilson <[EMAIL PROTECTED]> +1.604.709.0506 http://www.thebuttlesschaps.com http://www.inflatableeye.com http://www.hybrid17.com http://www.themainonmain.com -----==== Boycott Starbucks! http://www.haidabuckscafe.com ====----- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php