Hi,
I used the setcookie() function after doing lots of input check and also after checking for the valid user name and password. What my setcookie() function is doing is it is taking the value of user name and password and passing to the next page. But I am getting a Warning message "Cannot Add the Header Information, header already sent". I know that cookies have to be called before any output is sent to browser, as far as I know if any error is caught my program exits there and sends a message and if no error is found then the cookie is set. Can somebody tell me how can i set the cookie inside the script after all the security and input checks.
Greg