I have seen this functionality at this forum. After logging in, a message is displayed and the page redirected to the index page.
I would like to know how to achieve this. Unfortunately the header () command fails when there is some page output.
How can I redirect after displaying a success or failure message.
The header statement comes with this warning and no redirection takes place:
Code:
Warning: Cannot modify header information - headers already sent by (output started at /home/hari/web/links_directory/include/template.php:81) in /home/hari/web/links_directory/register.php on line
Is there any other way to redirect normally? I really don't want to use "include" statement as this may lead to some problems.