jancuks2 Posted January 7, 2012 Report Share Posted January 7, 2012 http://paste.php.lv/452cb027279fd7ca88db722c3b930e60?lang=php No error http://paste.php.lv/ce3e37b57d6d6ec5831b45e2da188658?lang=php No error http://paste.php.lv/89a476490af4e3942d7d0e54969c22bc?lang=php No error Šķiet kad viss ir pareizi, bet kad ielogojos viņš pārmet šā vai tā uz index.php . Link to comment Share on other sites More sharing options...
zintis8789 Posted January 7, 2012 Report Share Posted January 7, 2012 (edited) 2# Fails : $_SESSION['username'] = $_POST['username']; Kas ir $_POST['username'] ? 1# login forumā neparādas inputs ar username vārdu.. Edited January 7, 2012 by zintis8789 Link to comment Share on other sites More sharing options...
jancuks2 Posted January 7, 2012 Author Report Share Posted January 7, 2012 Kaut vai pie username input lauka pierakstu klāt name="username" nekas nemainās, šā vai tā met atpakaļ uz index.php Link to comment Share on other sites More sharing options...
ezis Posted January 7, 2012 Report Share Posted January 7, 2012 Visiem input laukiem pieraksti klāt name, citādi nav jēgas izmantot $_POST, ja vien Tev tur nenotiek ajaxīgas izvirtības! o0 Link to comment Share on other sites More sharing options...
jancuks2 Posted January 8, 2012 Author Report Share Posted January 8, 2012 Jā atradu problēmu, pie paroles inputa nebija name="password" . Link to comment Share on other sites More sharing options...
Recommended Posts