RE: [PHP] Clear POST variables on page refresh

2005-02-03 Thread trlists
On 3 Feb 2005 Richard Lynch wrote: > If it was only two pages, and there was only one header() re-direct, fine. > > But what ends up happening is you get in the habit of doing this all over > the place, and you have a mess of spaghetti logic spread over a hundred > files. That is a problem with

Re: [PHP] Clear POST variables on page refresh

2005-02-03 Thread Ricky Morley
You're wonderful. Thank you very much. On Thu, 3 Feb 2005 13:02:14 -0800 (PST), Richard Lynch <[EMAIL PROTECTED]> wrote: Ricky Morley wrote: Richard Lynch on Thursday, February 03, 2005 11:26 AM said: A simple thing to do is to put an md5 hash into the POST data,

Re: [PHP] Clear POST variables on page refresh

2005-02-03 Thread Richard Lynch
Ricky Morley wrote: >> Richard Lynch >> on Thursday, February 03, 2005 11:26 AM said: >> >>> A simple thing to do is to put an md5 hash into the POST data, then >>> only do the insert if that md5 hash isn't already "used" when they >>> hit refresh. > > Thank you for y

RE: [PHP] Clear POST variables on page refresh

2005-02-03 Thread Richard Lynch
Chris W. Parker wrote: > Richard Lynch > on Thursday, February 03, 2005 11:26 AM said: > >> A simple thing to do is to put an md5 hash into the POST data, then >> only do the insert if that md5 hash isn't already "used" when they >> hit refresh. >> >> This avoids the

Re: [PHP] Clear POST variables on page refresh

2005-02-03 Thread Ricky Morley
Richard Lynch on Thursday, February 03, 2005 11:26 AM said: A simple thing to do is to put an md5 hash into the POST data, then only do the insert if that md5 hash isn't already "used" when they hit refresh. Thank you for your responses. One question: If I were to use

RE: [PHP] Clear POST variables on page refresh

2005-02-03 Thread Chris W. Parker
Richard Lynch on Thursday, February 03, 2005 11:26 AM said: > A simple thing to do is to put an md5 hash into the POST data, then > only do the insert if that md5 hash isn't already "used" when they > hit refresh. > > This avoids the hassle of re-direct headers and

Re: [PHP] Clear POST variables on page refresh

2005-02-03 Thread Richard Lynch
Richard Morley wrote: > I'm not sure if this is specifically a PHP problem, but here we go. Is > there a way to clear the POST variables when the user refreshes a page? > Specifically, my webpage POSTs a form to update or delete a record from > the database -- it POSTs to itself, however. But if th

RE: [PHP] Clear POST variables on page refresh

2005-02-03 Thread Chris W. Parker
Richard Morley on Thursday, February 03, 2005 9:57 AM said: > I'm not sure if this is specifically a PHP problem, but here we go. Is > there a way to clear the POST variables when the user refreshes a > page? [snip] > I read something somewhere that seemed to imply