|
Posted by J.O. Aho on 10/02/36 11:32
Stefan Mueller wrote:
> After I've read the $_POST variables I'd like to set e.g.
> $_POST['myinput'] = "already used"
>
> Therefore I could figure out if this page has been reloaded (F5) or called
> again from the page before.
> If this page is reloaded (F5) $_POST['myinput'] would be "already used" and
> if it's called from the page before $_POST['myinput'] would be something
> else.
>
> However, if I reload or press the back button on the browser
> $_POST['myinput'] is not set to "already used" but it's set to the value it
> was before.
>
> How can I delete or reset the $_POST variables so they are changed also if
> you reload or press the back button on the browser?
> Stefan
>
>
You can't, you can use a cookie/session that stores values which you can use
to see if the user has the page already or not.
If you don't want to use cookeis, then you may need to use some kind of
database, where you can store the ip-number from where a user is requesting
the page and which page it has last requested, at the page you can check and
see if the has been loaded by looking in the database, if not, then store the
data there.
//Aho
Navigation:
[Reply to this message]
|