Reply to Re: How to modify or delete an entry in $_POST

Your name:

Reply:


Posted by J.O. Aho on 09/29/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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация