[eluser]Corbee[/eluser]
I inserted this to my controller
Code:
if (!($this->input->post('form_token')))
{
echo "Invalid Submission... redirecting to Registration Page";
redirect('register/index','refresh');
return false;
}
and got an error
Code:
A PHP Error was encountered
Severity: Warning
Message: Cannot modify header information - headers already sent by (output started at C:\ampp\htdocs\insurance1\application\controllers\register.php:23)
Filename: helpers/url_helper.php
Line Number: 539
Whenever I remove the redirect, it works, but I kinda need it.
Why is it not working, where did I go wrong?