How to refresh a page?

To do a refresh, you can use HTML meta tag such as :

 [META HTTP-EQUIV=Refresh CONTENT='10; URL=example.php']

Change the brackets to the obvious brackets, [ become <
That'll refresh to example.php in ten (10) seconds. It's also worth
mentioning that various predefined variables exist that reflect the
current page, run phpinfo() to see which exist on your system.
A commonly used one is called as $PHP_SELF For example, let's say we
wanted to refresh a page every 10 seconds forever (not suggested :-)
then :
[?php

if ($_POST['go'])
{

$url = $_POST['url'];

echo "content='4; url=$url'>";

?]

Change the brackets to the obvious brackets, [ become < for PHP tag

Was this answer helpful?

 Print this Article

Also Read

Is it possible to have MySQL and PHP run with one provider and the "database driven website" with the other ? Say with the help of only SSI / CGI?

Yes. Let your CGI/SSI include from the urls on your other site. On yourother site you return...

What does parsing means in PHP?

Parsing is the process where the php source code (.php, .php3, .php4, .phtml orwhatever) is...

I used PHP for one of the web sites I would like to move over to your hosting service. Is PHP fully supported and (if so) what versions of PHP are supported?

Yes, PHP is fully supported and we do support PHP 5.

How to redirect from php page to another php page?

For redirecting, you can use the PHP header() function like so : header("Location:...

I'm new to PHP, and would like to know if there is a code snippet for emailing a lost password to a subcriber

First, we must assume that you are currently storing the username/login, password and the email...