My personal favourite is to logically separate actions and views, which
is very easy to do and is virtually foolproof.
This way a user submits a form to a page that outputs nothing. This
page does its work, then redirects to another page which only shows
data. This is invisible to the user, a
* Thus wrote Diana Castillo ([EMAIL PROTECTED]):
> anyone know how to catch if someone has reloaded a page?
The way I prevent reloads is with a combination of session
variables and an extra form field, here is how I go about it:
form_page.php:
process_page.php:
http://www.php.net/)
To unsubsc
> The only way I know is to use sessions.
>
> Each time they load the page, you would check a session variable that you
> use store the status of a specific page. E.g.
>
> if($_SESSION['ReloadStatus']['ContactUs'] == true)
> {
> //Page has already been loaded once. This is a reload.
> //[
The only way I know is to use sessions.
Each time they load the page, you would check a session variable that you
use store the status of a specific page. E.g.
if($_SESSION['ReloadStatus']['ContactUs'] == true)
{
//Page has already been loaded once. This is a reload.
//---
4 matches
Mail list logo