Re: [PHP] PRG pattern - how to implement a "load page using GET"

2007-12-17 Thread Robert Erbaron
> > And I basically completely disagree with the author in the first > place, so... Well, that's been clear for a year. :) > > (P.S. I'll get to the issue of rearchitecting this via require instead > > of using header() redirects,cough, cough, Richard Lynch, cough, cough > > :) in a future messag

Re: [PHP] PRG pattern - how to implement a "load page using GET"

2007-12-17 Thread Richard Lynch
On Sun, December 16, 2007 2:05 pm, Robert Erbaron wrote: > - Never show pages in response to POST > - Navigate from POST to GET using REDIRECT > - Always load pages using GET I believe #3 is simply a more general way of saying #1 + #2, but may be wrong. And I basically completely disagree with th

Re: [PHP] PRG pattern - how to implement a "load page using GET"

2007-12-17 Thread Jochem Maas
Per Jessen schreef: > Robert Erbaron wrote: > >>> yes - abusing redirects as described is wasteful. and certainly it's >>> the first time I've ever heard the statement 'Never show pages in >>> response to POST' sounds like hubris too me. >> I've seen the statement in a number of messages in the ar

Re: [PHP] PRG pattern - how to implement a "load page using GET"

2007-12-17 Thread Per Jessen
Robert Erbaron wrote: >> yes - abusing redirects as described is wasteful. and certainly it's >> the first time I've ever heard the statement 'Never show pages in >> response to POST' sounds like hubris too me. > > I've seen the statement in a number of messages in the archives here > and in goog

Re: [PHP] PRG pattern - how to implement a "load page using GET"

2007-12-16 Thread Robert Erbaron
> a standard HTTP request is a GET request. I guess I'm just missing some basic definition of terminology. Been writing desktop systems for too long, 'spose. > using firefox and one of a number of extensions (firebug springs to mind) > you can actually view the request headers that are sent. Fir

Re: [PHP] PRG pattern - how to implement a "load page using GET"

2007-12-16 Thread Jochem Maas
Robert Erbaron wrote: > I've been reading up on login mechanisms using redirects, and have a > basic mechanism down. > > a1.php: > $site_title='My Site'; > if (isset($_SESSION['errmsg_s'])) > {$errmsg = 'Warning! '.$_SESSION['errmsg_s'].'!';} > else > {$errmsg = ''; } > if (isset($_SESSION['e

[PHP] PRG pattern - how to implement a "load page using GET"

2007-12-16 Thread Robert Erbaron
I've been reading up on login mechanisms using redirects, and have a basic mechanism down. a1.php: Welcome to '.$site_title.''; echo $errmsg; ?> a2.php: a3.php: '; ?> OK, looks like this handles refresh (resubmit) and back button issues. Hitting back when on page 3 empties 'email', so resubmi