Re: [PHP] Avoiding user refresh of pages with forms

2006-05-05 Thread Satyam
- Original Message - From: "Richard Lynch" <[EMAIL PROTECTED]> To: "John Wells" <[EMAIL PROTECTED]> Cc: Sent: Friday, May 05, 2006 3:27 AM Subject: Re: [PHP] Avoiding user refresh of pages with forms On Thu, May 4, 2006 6:37 am, John Wells w

Re: [PHP] Avoiding user refresh of pages with forms

2006-05-04 Thread Richard Lynch
On Thu, May 4, 2006 6:37 am, John Wells wrote: > On 5/3/06, Satyam <[EMAIL PROTECTED]> wrote: >> I used that method initially, some months ago, but finally dropped >> it. It >> looked nice at first, but then I started getting into problems and >> required >> too many special cases to make it work.

Re: [PHP] Avoiding user refresh of pages with forms

2006-05-04 Thread Satyam
- Original Message - From: "John Wells" <[EMAIL PROTECTED]> On 5/3/06, Satyam <[EMAIL PROTECTED]> wrote: I used that method initially, some months ago, but finally dropped it. It looked nice at first, but then I started getting into problems and required too many special cases to mak

Re: [PHP] Avoiding user refresh of pages with forms

2006-05-04 Thread chris smith
Also, with regards to sending success/failure messages across the redirection of your forms, I'd recommend considering sessions for passing the data. It keeps your URLs clean, and allows you to send complex data a bit easier (IMHO). For example if a user makes an error on a few different form el

Re: [PHP] Avoiding user refresh of pages with forms

2006-05-04 Thread John Wells
On 5/3/06, Satyam <[EMAIL PROTECTED]> wrote: I used that method initially, some months ago, but finally dropped it. It looked nice at first, but then I started getting into problems and required too many special cases to make it work. In the end, it wasn't a clean nor elegant solution. Satya

Re: [PHP] Avoiding user refresh of pages with forms

2006-05-03 Thread Satyam
- Original Message - From: "Rory McKinley" <[EMAIL PROTECTED]> To: Sent: Wednesday, May 03, 2006 8:32 PM Subject: Re: [PHP] Avoiding user refresh of pages with forms Brad Bonkoski wrote: Is there a way to key off of the data inserted? Like some unique value or se

Re: [PHP] Avoiding user refresh of pages with forms

2006-05-03 Thread Rory McKinley
Brad Bonkoski wrote: Is there a way to key off of the data inserted? Like some unique value or set of values that you can do a quick lookup before you insert/update/delete again... Or you could venture into an AJAX style of submission keyed off of a button click then a refresh to a 'report' pa

Re: [PHP] Avoiding user refresh of pages with forms

2006-05-03 Thread Mathieu Dumoulin
something interesting to note: header('location: newpage.php'); After processing your POST request, just send them to a new page and in that page you can display the result of the process (It can require a bit of change in your code) but the result will be that a refresh will refresh the resu

Re: [PHP] Avoiding user refresh of pages with forms

2006-05-03 Thread Jochem Maas
Jeff wrote: Is there a way to prevent a re-posting of the form data when a user pushes the "refresh" button on the browser? I have a page that has a form to enter credit's or debit's to a user account. The top of the page displays the users account history and at the bottom is a form to add an

Re: [PHP] Avoiding user refresh of pages with forms

2006-05-03 Thread Stut
Jeff wrote: Is there a way to prevent a re-posting of the form data when a user pushes the "refresh" button on the browser? I have a page that has a form to enter credit's or debit's to a user account. The top of the page displays the users account history and at the bottom is a form to add an

Re: [PHP] Avoiding user refresh of pages with forms

2006-05-03 Thread Brad Bonkoski
Is there a way to key off of the data inserted? Like some unique value or set of values that you can do a quick lookup before you insert/update/delete again... Or you could venture into an AJAX style of submission keyed off of a button click then a refresh to a 'report' page, in which case no P

[PHP] Avoiding user refresh of pages with forms

2006-05-03 Thread Jeff
Is there a way to prevent a re-posting of the form data when a user pushes the "refresh" button on the browser? I have a page that has a form to enter credit's or debit's to a user account. The top of the page displays the users account history and at the bottom is a form to add an adjustment. I