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.
Sign In
Not a member yet? Click here to register.
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");
?>


See also …


References

  • 1. ^ redirect by , retrieved 11/07/2014