erxmac Posted November 3, 2010 Report Share Posted November 3, 2010 Pēc SUBMIT spiežot REFRESH viss saiet bāzē! Link to comment Share on other sites More sharing options...
Леший Posted November 3, 2010 Report Share Posted November 3, 2010 Tev arī neder tā slikta funkcija header()? Link to comment Share on other sites More sharing options...
erxmac Posted November 3, 2010 Report Share Posted November 3, 2010 Tā ir baigi labā, bet man sākumā ir 'session_start' Link to comment Share on other sites More sharing options...
Rincewind Posted November 3, 2010 Report Share Posted November 3, 2010 Man tas nepalīdzēja! Vai Jūs būtu tik laipni un pakomentētu šo kodu sīkāk! if (isset($_POST['token']) && $_POST['token'] == $_SESSION['token']) { // Šeit kods kurš saliek POST datubāzē unset($_POST['token']); } $token = md5(uniqid(rand(), true)); $_SESSION['token'] = $token; <form method="post" action=""> // Šeit tava HTML forma <input type="hidden" name="token" value="<?=$token;?>"/> </form> // Nez ko te vēl var piekomentēt //piekomentēsu komentu Link to comment Share on other sites More sharing options...
Rincewind Posted November 3, 2010 Report Share Posted November 3, 2010 Tā ir baigi labā, bet man sākumā ir 'session_start' session_start headerim netraucē Link to comment Share on other sites More sharing options...
Recommended Posts