PHP auto refresh page without losing user input

Posted by Tony on Stack Overflow See other posts from Stack Overflow or by Tony
Published on 2010-06-09T01:33:33Z Indexed on 2010/06/09 1:42 UTC
Read the original article Hit count: 273

Filed under:
|
|
|

I'm working on a PHP collaboration software project. I have a page that shows the latest updates from other users who are adding content to the database, but also has a form input to allow the user to enter text. I am currently using this code to refresh the page automatically every 30 seconds:

header('Refresh: 30');

The problem is that the header code refreshes the entire page, and not just what is pulled from the database. Is there any PHP code that will just pull any new data from the database without refreshing the entire page?

If someone could point me in the right direction I'd appreciate it.

© Stack Overflow or respective owner

Related posts about php

Related posts about JavaScript