我想要做的「記住我」選項,在我的登錄表單,但我仍然得到錯誤:頭已經發出已餅乾錯誤
;llfdfdffddffdfd Warning: Cannot modify header information - headers already sent by (output started at /home/chumorekgn/www/maneku/log-in.php:40) in /home/chumorekgn/www/maneku/log-in.php on line 76
Warning: Cannot modify header information - headers already sent by (output started at /home/chumorekgn/www/maneku/log-in.php:40) in /home/chumorekgn/www/maneku/log-in.php on line 77
我不知道我應該怎麼辦?這裏是我的代碼
if(isset($_GET['r'])){
echo ";llfdfdffddffdfd";
setcookie("Maneku_login", base64_encode($l));
setcookie("Maneku_pass", base64_encode(md5(md5(base64_decode($h)))));
}
移動你的'echo'下面的'setcookie' – Inurosen