if (!empty ($_POST)){ if (($_POST["meno"]=="peto159") and ($_POST["heslo"]=="petopeto")){ SetCookie ("meno", $_POST["meno"], time()+10*60); SetCookie ("heslo", $_POST["heslo"], time()+10*60); SetCookie ("prihlaseny", "true", time()+10*60); echo "spravne heslo"; }else{ echo "Zadali ste zlé heslo!"; }} ?>
Nie ste prihlásení.