php and forms problem

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
harsha
Forum Contributor
Posts: 103
Joined: Thu Jul 11, 2002 1:35 am
Location: Bengaluru (Bangalore) > Karnataka > India

php and forms problem

Post 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
User avatar
PaTTeR
Forum Commoner
Posts: 56
Joined: Wed Jul 10, 2002 7:39 am
Location: Bulgaria
Contact:

Post 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);
Post Reply