Php refresh page 1 time

I am using PHP for my website and clicked from say myfile.php I want the page to be refreshed only once: The code would be like:


How to achieve this scenario?

asked Dec 4, 2015 at 14:26

0

You could do:

if[empty[$_GET['status']]]{
     header['Location:YourPagesPath.php?status=1'];
     exit;
}

Which would reload the page and if the GET parameter isn't present.

answered Dec 4, 2015 at 14:37

2

I don't exactly understand what you are trying to do, but I think you will need something similar to this:

Chủ Đề