Disable refresh
Page 1 of 1 • Share •
Disable refresh
I have a page that uses php and mysql to submit information. Now once the information is submitted I do not want the user to click refresh. The reason why, is it will submit the information again and again. Is there a way to do this? 

______________________________

THIS SIGNATURE IS BY::: AGENT COSMIC ----------QUOTE BY:::TECHY

charvie
Advanced Surfer
- Posts: 446
Joined: 2008-04-13
Operating System: Windows XP
Re: Disable refresh
I would actually redirect them after their first submit. That is, after they submit their details, redirect them to a home page or a page that displays a successfully submitted message. If you stay on the same page there is no way to stop the user from submitting their details 100 times.
______________________________
There are no stupid questions, only those too stupid to ask for help.

darkagn- Pioneer

- Posts: 85
Joined: 2007-12-28
Operating System: Windows XP SP3 at home, Vista Ultimate 64-bit at work
Re: Disable refresh
is that the only way? is there a programming language that could help me achieve this?
______________________________

THIS SIGNATURE IS BY::: AGENT COSMIC ----------QUOTE BY:::TECHY

charvie
Advanced Surfer
- Posts: 446
Joined: 2008-04-13
Operating System: Windows XP
Re: Disable refresh
It's call AJAX, web 2.
It uses Javascript and XML synchronously.
It uses Javascript and XML synchronously.______________________________


Agent Cosmic
Global Moderator | Developer
- Posts: 2996
Joined: 2008-03-07
Operating System: Windows XP Professional
Re: Disable refresh
If you stopped the user from refreshing their page, that would be considered controlling the other persons browser and be named a "virus" by many. So, trust me don't use any control over your user, simply set a Session when they click the button, and then on the page you don't want them to submit again, check to see if that session is valid, and if it is just redirect them back to the page that you want them to goto.
Programmer
Newbie Surfer
- Posts: 11
Joined: 2009-11-04
Operating System: Windows 7 Ultimate, Ubuntu 9.04, Windows XP Profession SP2
Permissions of this forum:
You cannot reply to topics in this forum












by 