Re: Jump.php and header()

From: Date: Thu, 04 Mar 2004 22:00:51 +0000
Subject: Re: Jump.php and header()
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-11095@lists.php.net to get a copy of this message
Have a look at your browser address window while you run the example. Each action: - POSTs the current form (obviously, otherwise the data won't be collected server-side) - refreshes the current page with a GET call - see the query string Therefore your header problem. Simple fix: in the template page that encapsulates your QFC form, ob_start(). HTH Ignatius _________________________ "Paul Smith" <paul@foundryzero.com> wrote in message news:E2255102-6E14-11D8-A26F-00039310B554@foundryzero.com... > > > I'm trying to figure out how to use QuickForm_Controller, and I'm > trying to do a Wizard-like multi-page form. I'm using QFC within a > larger context... by the time I'm ready to start building my > HTML_QuickForm_Controller and _Action instances, I've already sent > headers. However, this thing seems to need to header('Location: ', > 'someurl') in Jump.php to move from one page to the next. I keep > getting the 'Cannot modify header information - headers already sent' > error. I'm confused as to why it needs to do this... it's using > sessions anyway, right? > Does QFC /always/ need to be able to send header('Location: ', > 'someurl'), or am I just not doing something right? > > > -- > Paul Smith > Foundry Zero > 919.834.5433 > www.foundryzero.com

« previous php.pear.general (#11095) next »