Re: duplicate entry

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



sam rumaizan wrote:
How do I disable Refresh and Back button. to Prevent duplicate entry

Disabling client-side features like refresh and back is not the right way to solve this problem. The most common solution is to redirect the user to the next page from the form handler rather than outputting the next page from the form handler.

For example...

form.php shows the form, which submits to formhandler.php which processes the form and then does a header('Location: ...') redirect to nextpage.php.

If the user hits refresh after submitting the form they will refresh nextpage.php. If they hit back they will be taken back to form.php.

-Stut

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux