Re: [PHP] web refreshing problem

2009-03-09 Thread Nathan Rixham

Andrew Williams wrote:

Hi,

my php program does not display current result of submitted form
instead the previous content is shown until you refresh manually
(which means resubmitting the form).

Can someone help me out because, I want to display the result of the
latest form result and not the old one.

I am using apache server on windows. Please help.


have you per chance got all data saved in the session and are using a 
script like


if( something in session ) {
  show session
}
else if( something in post ) {
  add form data to session
}
else {
  show only the form
}

three common causes are:
1- you're not actually processing the new form data
2- your browser isn't sending the form data second time round
3- your browser is caching the page (very very unlikely)

regards

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] web refreshing problem

2009-03-09 Thread Virgilio Quilario
 Hi,

 my php program does not display current result of submitted form
 instead the previous content is shown until you refresh manually
 (which means resubmitting the form).

 Can someone help me out because, I want to display the result of the
 latest form result and not the old one.

 I am using apache server on windows. Please help.

 have you per chance got all data saved in the session and are using a script
 like

 if( something in session ) {
  show session
 }
 else if( something in post ) {
  add form data to session
 }
 else {
  show only the form
 }

 three common causes are:
 1- you're not actually processing the new form data
 2- your browser isn't sending the form data second time round
 3- your browser is caching the page (very very unlikely)

 regards


Hi Nathan,

Most likely your form is using POST method and your browser is
caching the page.

Virgil
http://www.jampmark.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] web refreshing problem

2009-03-09 Thread Virgilio Quilario
  my php program does not display current result of submitted form
  instead the previous content is shown until you refresh manually
  (which means resubmitting the form).
 
  Can someone help me out because, I want to display the result of the
  latest form result and not the old one.
 
  I am using apache server on windows. Please help.
 
  have you per chance got all data saved in the session and are using a
  script
  like
 
  if( something in session ) {
   show session
  }
  else if( something in post ) {
   add form data to session
  }
  else {
   show only the form
  }
 
  three common causes are:
  1- you're not actually processing the new form data
  2- your browser isn't sending the form data second time round
  3- your browser is caching the page (very very unlikely)
 
  regards
 

 Hi Nathan,

 Most likely your form is using POST method and your browser is
 caching the page.


yes my form is using post method but how do you stop catching the page

hi Andrew,

use the code below. it is from this page
http://www.php.net/header
look for Example #2 Caching directives.

?php
header(Cache-Control: no-cache, must-revalidate); // HTTP/1.1
header(Expires: Sat, 26 Jul 1997 05:00:00 GMT); // Date in the past
?

to be sure, put them as the first 2 lines at the top.

Virgil
http://www.jampmark.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] web refreshing problem

2009-03-09 Thread Andrew Williams
Hi everyone,

I discovered that error  and warning messages from my program does not
display automatically unless you refresh the page. and page also has the
same problem.   Does it has anything to do with the PHP - Apache  settings.

I have added the below message to it but its not making no difference.

 ?php
  header(Cache-Control: no-cache, must-revalidate); // HTTP/1.1
  header(Expires: Sat, 26 Jul 1997 05:00:00 GMT); // Date in the past
  ?

help please

On Mon, Mar 9, 2009 at 3:09 PM, Virgilio Quilario 
virgilio.quila...@gmail.com wrote:

  hi,

 that wouldn't be a problem.
 it will just tell the browser not to cache the html output.

 Virgil
 http://www.jampmark.com

 On Mon, Mar 9, 2009 at 11:03 PM, Andrew Williams
 and...@stocksignals.com wrote:
  part of the program needs to store data data on he catch memory. would
 that
  be a problem?
 
  On Mon, Mar 9, 2009 at 2:57 PM, Virgilio Quilario
  virgilio.quila...@gmail.com wrote:
 
my php program does not display current result of submitted form
instead the previous content is shown until you refresh manually
(which means resubmitting the form).
   
Can someone help me out because, I want to display the result of
the
latest form result and not the old one.
   
I am using apache server on windows. Please help.
   
have you per chance got all data saved in the session and are
 using
a
script
like
   
if( something in session ) {
 show session
}
else if( something in post ) {
 add form data to session
}
else {
 show only the form
}
   
three common causes are:
1- you're not actually processing the new form data
2- your browser isn't sending the form data second time round
3- your browser is caching the page (very very unlikely)
   
regards
   
  
   Hi Nathan,
  
   Most likely your form is using POST method and your browser is
   caching the page.
 
 
  yes my form is using post method but how do you stop catching the page
 
  hi Andrew,
 
  use the code below. it is from this page
  http://www.php.net/header
  look for Example #2 Caching directives.
 
  ?php
  header(Cache-Control: no-cache, must-revalidate); // HTTP/1.1
  header(Expires: Sat, 26 Jul 1997 05:00:00 GMT); // Date in the past
  ?
 
  to be sure, put them as the first 2 lines at the top.
 
  Virgil
  http://www.jampmark.com
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php
 
 
 
 
  --
  Best Wishes
  Andrew Williams
 
 
 




-- 
Best Wishes
Andrew Williams


Re: [PHP] web refreshing problem

2009-03-09 Thread Nathan Rixham

Andrew Williams wrote:

Hi everyone,

I discovered that error  and warning messages from my program does not
display automatically unless you refresh the page. and page also has the
same problem.   Does it has anything to do with the PHP - Apache  settings.


post your code - limited in what help we can give without it.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] web refreshing problem

2009-03-08 Thread Andrew Williams
Hi,

my php program does not display current result of submitted form
instead the previous content is shown until you refresh manually
(which means resubmitting the form).

Can someone help me out because, I want to display the result of the
latest form result and not the old one.

I am using apache server on windows. Please help.
-- 
www.willandy.co.uk

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] web refreshing problem

2009-03-08 Thread George Larson
Maybe you could use a javascript refresh? But that would still mean
resubmitting the form.

On Sun, Mar 8, 2009 at 11:35 AM, Andrew Williams and...@stocksignals.comwrote:

 Hi,

 my php program does not display current result of submitted form
 instead the previous content is shown until you refresh manually
 (which means resubmitting the form).

 Can someone help me out because, I want to display the result of the
 latest form result and not the old one.

 I am using apache server on windows. Please help.
 --
 www.willandy.co.uk

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] web refreshing problem

2009-03-08 Thread Ashley Sheridan
On Sun, 2009-03-08 at 15:56 -0500, George Larson wrote:
 Maybe you could use a javascript refresh? But that would still mean
 resubmitting the form.
 
 On Sun, Mar 8, 2009 at 11:35 AM, Andrew Williams 
 and...@stocksignals.comwrote:
 
  Hi,
 
  my php program does not display current result of submitted form
  instead the previous content is shown until you refresh manually
  (which means resubmitting the form).
 
  Can someone help me out because, I want to display the result of the
  latest form result and not the old one.
 
  I am using apache server on windows. Please help.
  --
  www.willandy.co.uk
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php
 
 
Have you got an example of code to see how you are actually receiving
the data, parsing it and then displaying the results back to the
browser?


Ash
www.ashleysheridan.co.uk


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php