Create a dynamic website with PHP
Difficulty: Beginner ● Progress: 0 / 0 modules completed
Redirect to another page
Redirection in PHP is a simple operation that allows you to send the user to a new page after a particular action or event (such as a successfully submitted form or a login to an account).
The key function for accomplishing this is the use of the HTTP header via PHP's
header()function.
Using header
The header() function sends a raw HTTP header to the browser before any content is rendered on the page.
To redirect a user, the header you need to send is a
Locationinstruction.
You need a free account to read this module