Reputation: 33996
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
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
Reputation: 976
Either via a Meta refresh http://en.wikipedia.org/wiki/Meta_refresh or Javascript.
Upvotes: 0