Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

No repost of form on reload

Status
Not open for further replies.

rylle2000

Programmer
May 23, 2002
4
SE
Hi!

Let's say a user submits a form that is handled on the same page (same script). After the page has fully loaded again he presses the reload/refresh button in his browser.

Is there anyway one can avoid the form from beeing handled by the page again when the reload button is pressed?
 
if($submit){
$process=1;
}
if ($process > 0){
// alreaady done
}esle{
//process stuff
} ***************************************
Party on, dudes!
[cannon]
 
that will not do

was in refresh of the page.

Well, one way is creating cookies. Other way is saving the last action of the user. Well, i din't started yet doing anything in that way. But, for what i think, this are 2 good ways of solving your problem. Anikin
Hugo Alexandre Dias
Web-Programmer
anikin_jedi@hotmail.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top