PHP give refresh on a page

Asked

Viewed 17,307 times

2

There’s a way to give refresh to a page in my example:

Page login > send data to the processa.php > sends to a menu

Sometimes when it gets to the lawsuit, it gets "stuck" and then I wanted to know a way that it didn’t happen.

Thank you

3 answers

5

If I understand correctly, this is simple to do with PHP:

header("Refresh: 0");

This will reload your current page, and if you need to redirect to another page, use the code below:

header("Refresh: 0; url=pagina2.php");

Note: A discussion on the same subject can be found (in English) in the link: https://stackoverflow.com/questions/12383371/refresh-a-page-using-php

  • Solved. Thank you all for your help!

3


It would be something like:

header("Refresh: 20; url = menu.php");

You put Refresh at 20, if it crashes it will already come out

1

Browser other questions tagged

You are not signed in. Login or sign up in order to post.