Hello again,
I have searched the web, asked in other forums (not on tek-tips), and I cannot seem to come up with a good solution for this problem.
I have been coding in PHP for about two years; I have started using OOP (PHP4) and am now developing more complex applications, which actually work as intended
, but one thing still eludes me, how do I handle the user clicking the ‘Forward’, ‘Back’, and ‘Refresh’ buttons?
Originally I was getting into problems because the user would submit (insert) something into the database on one page, and see the results on the subsequent page. If they then click refresh (on that subsequent page) the script would try to insert the information to the database again. To fix this problem I started using a processing page between the two pages, and that works beautifully for refresh, but it causes problems with the back and forward buttons. I have also tried to design interfaces where the user would have no need to use these buttons, but for most users it is just a natural reaction, no matter how many buttons and links you provide for them.
I am not looking for a quick fix or an easy solution, maybe a good tutorial, or even a book. I was wondering if there is a way to design an application which addresses these issues during the planning/development phase, so all the functions of the browser work as expected, but can also be ‘handled’ by the application code.
Thank you for any advise,
Itshim
I have searched the web, asked in other forums (not on tek-tips), and I cannot seem to come up with a good solution for this problem.
I have been coding in PHP for about two years; I have started using OOP (PHP4) and am now developing more complex applications, which actually work as intended
Originally I was getting into problems because the user would submit (insert) something into the database on one page, and see the results on the subsequent page. If they then click refresh (on that subsequent page) the script would try to insert the information to the database again. To fix this problem I started using a processing page between the two pages, and that works beautifully for refresh, but it causes problems with the back and forward buttons. I have also tried to design interfaces where the user would have no need to use these buttons, but for most users it is just a natural reaction, no matter how many buttons and links you provide for them.
I am not looking for a quick fix or an easy solution, maybe a good tutorial, or even a book. I was wondering if there is a way to design an application which addresses these issues during the planning/development phase, so all the functions of the browser work as expected, but can also be ‘handled’ by the application code.
Thank you for any advise,
Itshim