Are there any alternative to the header(); function ?
Posted
by
Simon
on Stack Overflow
See other posts from Stack Overflow
or by Simon
Published on 2012-09-30T21:36:43Z
Indexed on
2012/09/30
21:37 UTC
Read the original article
Hit count: 140
The thing is, I have a log-in page. And, when user enters Username & Password, they must be re-directed to success/failure page. Now, I have placed a "header('location:welcome.php');" after mysql rows are returned. But, it is giving me Header already sent errors, and I don't know much about PHP to do anything about it, let alone understand why it is happening. So, how to you transfer a user to another page after log-in data is verified?
Same problem is happening with register, post, comment and search functions in my site.
© Stack Overflow or respective owner