PHP auto refresh page without losing user input
- by Tony
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…