[PHP] Preventing data from being reposted?

2005-03-03 Thread rory walsh
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? -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Preventing data from being reposted?

2005-03-03 Thread eoghan
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? -- PHP

Re: [PHP] Preventing data from being reposted?

2005-03-03 Thread rory walsh
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

Re: [PHP] Preventing data from being reposted?

2005-03-03 Thread Jochem Maas
rory walsh wrote: 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:

Re: [PHP] Preventing data from being reposted?

2005-03-03 Thread Gareth Williams
Wouldn't using GET instead of POST help? Gareth Williams venditor.com Buy cool stuff online at a href=http://www.venditor.com;venditor.com/a On 3 Mar 2005, at 14:20, Jochem Maas wrote: rory walsh wrote: Thanks Eoghan, I have tried the following but it still reposts the data from the form and

Re: [PHP] Preventing data from being reposted?

2005-03-03 Thread rory walsh
Cheers, I'll take a look, I had tried a search but thunderbird didn't find anything, even with the exact thread title I had to google it? Anyway I'll take a look. Jochem Maas wrote: rory walsh wrote: Thanks Eoghan, I have tried the following but it still reposts the data from the form and goes

Re: [PHP] Preventing data from being reposted?

2005-03-03 Thread eoghan
i think ive missed a few mails there...? rory walsh wrote: Cheers, I'll take a look, I had tried a search but thunderbird didn't find anything, even with the exact thread title I had to google it? Anyway I'll take a look. Jochem Maas wrote: rory walsh wrote: Thanks Eoghan, I have tried the

Re: [PHP] Preventing data from being reposted?

2005-03-03 Thread Jochem Maas
Gareth Williams wrote: Wouldn't using GET instead of POST help? in a way it could - but you don't usually want to use a GET as this can be easily spoofed (i.e. anyone could send you a link or post one in a forum that would do the post action without warning you) which comes down to: you should be

Re: [PHP] Preventing data from being reposted?

2005-03-03 Thread Jochem Maas
eoghan wrote: i think ive missed a few mails there...? rory walsh wrote: Cheers, I'll take a look, I had tried a search but thunderbird didn't find anything, even with the exact thread title I had to google it? Anyway I'll take a look. my first google hit on search for the exact title gave me

Re: [PHP] Preventing data from being reposted?

2005-03-03 Thread rory walsh
Yeah I got it, cheers. Actually the problem I am getting is more to do with my session variables I think? Here is the jist of the code. if(log out button has been pressed) { session_variable=no } if(log in button has been pressed) { session_variable=yes } if(session_variable==yes) { display the

Re: [PHP] Preventing data from being reposted?

2005-03-03 Thread Jochem Maas
rory walsh wrote: Yeah I got it, cheers. Actually the problem I am getting is more to do with my session variables I think? Here is the jist of the code. if(log out button has been pressed) { session_variable=no } if(log in button has been pressed) { session_variable=yes }

Re: [PHP] Preventing data from being reposted?

2005-03-03 Thread rory walsh
I'm pretty sure I am looking at cached pages but the problem with this seems to be that some browsers support these header directives and others don't, i.e. Firefox. The following work in IE but not Firefox header(Cache-control: private); header(Cache-Control: no-store, no-cache,

Re: [PHP] Preventing data from being reposted?

2005-03-03 Thread Jochem Maas
rory walsh wrote: I'm pretty sure I am looking at cached pages but the problem with this seems to be that some browsers support these header directives and others don't, i.e. Firefox. The following work in IE but not Firefox header(Cache-control: private); header(Cache-Control: no-store,

RE: [PHP] Preventing data from being reposted?

2005-03-03 Thread Chris W. Parker
Jochem Maas mailto:[EMAIL PROTECTED] on Thursday, March 03, 2005 5:57 AM said: Gareth Williams wrote: Wouldn't using GET instead of POST help? in a way it could - but you don't usually want to use a GET as this can be easily spoofed (i.e. anyone could send you a link or post one in a

Re: [PHP] Preventing data from being reposted?

2005-03-03 Thread Richard Lynch
Jochem Maas wrote: Gareth Williams wrote: Wouldn't using GET instead of POST help? in a way it could - but you don't usually want to use a GET as this can be easily spoofed (i.e. anyone could send you a link or post one in a forum that would do the post action without warning you) which

Re: [PHP] Preventing data from being reposted?

2005-03-03 Thread Jochem Maas
Richard Lynch wrote: Jochem Maas wrote: Gareth Williams wrote: Wouldn't using GET instead of POST help? in a way it could - but you don't usually want to use a GET as this can be easily spoofed (i.e. anyone could send you a link or post one in a forum that would do the post action without warning

RE: [PHP] Preventing data from being reposted?

2005-03-03 Thread Richard Lynch
POST is not a security measure. I think what's special about POST is that it is meant to hold a lot more data. With GET there is a limit to how long the querystring can be. POST also has a (larger) limit. Actually, both *could* be limitless. A server is require to have NO LESS THAN $x for

RE: [PHP] Preventing data from being reposted?

2005-03-03 Thread pmpa
the code. Pedro. -Mensagem original- De: rory walsh [mailto:[EMAIL PROTECTED] Enviada: quinta-feira, 3 de Março de 2005 12:01 Para: php-general@lists.php.net Assunto: [PHP] Preventing data from being reposted? Is there anyway I can prevent data from being reposted when I hit the back button

RE: [PHP] Preventing data from being reposted?

2005-03-03 Thread pmpa
']; echo You are logged as .$name; } ? There are probably some errors I haven't run the code. Pedro. -Mensagem original- De: rory walsh [mailto:[EMAIL PROTECTED] Enviada: quinta-feira, 3 de Março de 2005 12:01 Para: php-general@lists.php.net Assunto: [PHP] Preventing data from being reposted