php has header(‘refresh:30’)
When i’m getting data from a form via post,the array resets on refresh(when i use header-refresh)
I was looking for a setTimeOut(in javascript) sorta tool in php or a way to persist a variable got from the user(form data) even after a refresh.
— Php Beginner
Try using $_SESSION to keep certain variables. This will allow the variables to be kept even after navigating away to another page. Keep in mind that you must start the session with
session_start()before using sessions.http://www.php.net/manual/en/book.session.php
As to the rest of your question, I’m not exactly sure what you’re asking… >_>