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.
> //[
dStatus']['ContactUs'] == true
}
-Original Message-
From: Diana Castillo [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 30, 2003 8:12 AM
To: [EMAIL PROTECTED]
Subject: [PHP] capturing reloads
anyone know how to catch if someone has reloaded a page?
--
PHP General Mailing Lis
anyone know how to catch if someone has reloaded a page?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
5 matches
Mail list logo