Hi
I would like to redirect the user directly to some other page after some time ( say if user has supplied incorrect password or so )
I used the header function, but it is saying something like
Cannot modify header information - headers already sent by (output started at /var/www/html/fileupload.php:9) in /var/www/html/fileupload.php on line 17
Which function do I need to set a timer and also to redirect to some other page automatically ?
redirecting back to some page.
Moderator: General Moderators
Re: redirecting back to some page.
You can only send headers if no other output has been sent to the browser - such as text. The error you're getting says output was already sent to the browser on line 9 of your file.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
Re: redirecting back to some page.
how to solve it in that case ?
pickle wrote:You can only send headers if no other output has been sent to the browser - such as text. The error you're getting says output was already sent to the browser on line 9 of your file.
Re: redirecting back to some page.
I got it... It's solved now...
Thank you
Thank you
sangfroid wrote:how to solve it in that case ?![]()
pickle wrote:You can only send headers if no other output has been sent to the browser - such as text. The error you're getting says output was already sent to the browser on line 9 of your file.