I'm trying to get this piece of code which handles user logins to work. The process is simple - User registers and gets sent confirmation email. Clicking on the link in the email will bring them to a page where they're verified and logged in. The problem is I keep getting warnings:
Warning: Cannot add header information - headers already sent by (output started at C:\Program Files\Apache Group\Apache2\htdocs\test3.php:2) in C:\Program Files\Apache Group\Apache2\htdocs\test3.php on line 94
Warning: Cannot add header information - headers already sent by (output started at C:\Program Files\Apache Group\Apache2\htdocs\test3.php:2) in C:\Program Files\Apache Group\Apache2\htdocs\test3.php on line 95
I know I'm supposed to put the setcookies() function before any headers are sent but I can't really see where the problem lies in my code. Help would be appreciated..
Code for confirmation page : www.singnet.com.sg/~quake/confirm.php
Code holding functions for confirming user : www.singnet.com.sg/~quake/test3.php