You are here: Re: [PHP] Preventing data from being reposted? « PHP « IT news, forums, messages
Re: [PHP] Preventing data from being reposted?

Posted by Rory Walsh on 03/03/05 14:58

Thanks Eoghan, I have tried the following but it still reposts the data
from the form and goes back a page?

header("Cache-control: private");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");

Am I write in assuming that the above headers should prevent the user
from going back in the first place as no cache has been taken?


Eoghan wrote:
> you can use header()
> http://ie.php.net/header
>
>
> rory walsh wrote:
>
>> Is there anyway I can prevent data from being reposted when I hit the
>> back button on my browser? When I hit back I get a message from my
>> browser asking do I want to repost the data, can I prevent this window
>> from appearing?
>>

 

Navigation:

[Reply to this 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

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