Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.

redirect

This function will send the user to any page specifyed with the $location using header().

redirect

Quote

redirect ( string $location [, bool $script ] )


Parameters
location
The URL or file you want to redirect to script
Use JavaScript to redirect, set this to true to enable it, default is false.

Return Values
No value is returned.

Example
Code
<?php
// Redirect user to a remote address
redirect("www.example.com");

// Redirect user to a file inside current folder
redirect("myfile.php");
?>