PHPSuperBlog.com

Refresh page with PHP function header()

In my past post Redirect page using PHP function header(), I talked about how to redirect page with header() function. To refresh a page, I could think of using the same function, just redirect the page to itself, and it has the refresh effect. Continue Reading →

HTML form – submit to a new window

We use HTML form a lot for the user to input data and process those data from a PHP file, but with the standard code of a HTML form:

<form method="post" name="bus" action="afile.php">
<input type="text" name="atext" />
<input type="submit" value="submit"/>
</form>

Continue Reading →

Redirect page using PHP function header()

In some cases, you might like to redirect the user to another page when the user enters a certain page, example like when the website is under maintenance and you might like to redirect the user once they reach the home page to a page saying that the website is under maintenance. To redirect to another page when the page loads, there is a function in PHP could do the job. It is the header() function and the way to for redirecting a page is like this: Continue Reading →

  • Categories

  • Useful Downloads