Page 1 of 1

php and forms problem

Posted: Fri Nov 29, 2002 6:46 am
by harsha
i have a script to show the articles and i have provided user to enter the comments, and the comments are stored in the database

the problem is when the user enters the comments and submits it the data won't show up on the page unless page is refreshed when refresh is
pressed it come.if refresh again the same data adds up one more time so how do i refresh the page when the form is submitted

if i use onsubmit="location.reload();" will it work.

plz help me

Posted: Fri Nov 29, 2002 7:25 am
by PaTTeR
This is cache problem. If you use sessions, this may solve your problem ... for me works fine (PHP 4.2.2)

Code: Select all

session_cache_limiter(private, must-revalidate);