Hey.. hope some ppl can help me 🙂
Ok.. I have a login form in plain html w/submit button using POST....
I then call a login.php file that will check against a MySQL db to check if the username and password are valid...
If valid I want to create a cookie..based on that users log in..
The problem is I get an error like: "cannot add to header because output has already begun..." not exactly in those words... but similar...
So how come I can't create a cookie after I check if a user has a valid name and password?
rgds,
Swixy