lisovaccaro
lisovaccaro

Reputation: 33996

How do I reload the page immediately after display this?

Right now after posting that text is displayed, I want to reload the page also.

This is the text that is displayed after posting:

echo "Tu chisme se publicó con éxito";

Thanks

Upvotes: 0

Views: 256

Answers (2)

bassneck
bassneck

Reputation: 4043

you can put header('refresh: 1; URL='.$_SERVER['PHP_SELF']); before the echo.

this will make your page reload in 1 second.

Upvotes: 1

BlueDog
BlueDog

Reputation: 976

Either via a Meta refresh http://en.wikipedia.org/wiki/Meta_refresh or Javascript.

Upvotes: 0

Related Questions