Help me out......... I am dumb
Warning: Cannot add header information - headers already sent by (output started at C:............\CheckLogin.php:3) in C:.....\CheckLogin.php on line 45
Due to this line in code
Header("Location: desmac.html");
Your script produces some output before your statement Header("Location: desmac.html"); is processed!
Check for any whitespace that might be sent to the browser before your header call. ie. echo, print statements or parse errors.
Each will produce your specified error.
Cheers,
John
P.S. Easier to help identify your problems when you post your code.