|
подскажите где баг php
57 if ($res[pass]==$pass) {
58 setcookie('fio',$res[fio],time()+3600);
59 setcookie('pa',$res[pass],time()+3600);
60 show_hello($res[fio]);
}}}
сыпет ошибки:
Notice: Use of undefined constant pass - assumed 'pass' in z:\home\test2.ru\www\index.icn.php on line 57
Notice: Use of undefined constant fio - assumed 'fio' in z:\home\test2.ru\www\index.icn.php on line 58
Warning: Cannot modify header information - headers already sent by (output started at z:\home\test2.ru\www\test.php:12) in z:\home\test2.ru\www\index.icn.php on line 58
Notice: Use of undefined constant pass - assumed 'pass' in z:\home\test2.ru\www\index.icn.php on line 59
Warning: Cannot modify header information - headers already sent by (output started at z:\home\test2.ru\www\test.php:12) in z:\home\test2.ru\www\index.icn.php on line 59
Notice: Use of undefined constant fio - assumed 'fio' in z:\home\test2.ru\www\index.icn.php on line 60
пишу echo " res[fio] res[pass]";
всё нормально отоброжает
alladin добавил [date]1064423251[/date]:
написал Error_Reporting(E_ALL & ~E_NOTICE);
остались только:
Warning: Cannot modify header information - headers already sent by (output started at z:\home\test2.ru\www\test.php:12) in z:\home\test2.ru\www\index.icn.php on line 58
и
Warning: Cannot modify header information - headers already sent by (output started at z:\home\test2.ru\www\test.php:12) in z:\home\test2.ru\www\index.icn.php on line 59
куки не работают(Outpost не логирует попытку их записи)
|