Cytat
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at H:\xampp-win32-1.7.3\xampp\htdocs\k\index.php:1) in H:\xampp-win32-1.7.3\xampp\htdocs\k\index.php on line 3
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at H:\xampp-win32-1.7.3\xampp\htdocs\k\index.php:1) in H:\xampp-win32-1.7.3\xampp\htdocs\k\index.php on line 3
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at H:\xampp-win32-1.7.3\xampp\htdocs\k\index.php:1) in H:\xampp-win32-1.7.3\xampp\htdocs\k\index.php on line 3
u kolegi na linuxie ktory ma php normalnie zainstalowane dziala.
//ob_start(); $tab[0][0] = "Pytanie 1 - Finish Peja's song \"What .... that's rap\""; $tab[0][1] = "A - ass"; $tab[0][2] = "B - life"; $tab[0][3] = "C - beer"; $tab[0][4] = "D - nuts"; $tab[0][5] = 2; $tab[1][0] = "Pytanie 2 - What's life according to Peja?"; $tab[1][1] = "A - tired"; $tab[1][2] = "B - boring"; $tab[1][3] = "C - fucking"; $tab[1][4] = "D - hilarious"; $tab[1][5] = 3; ............... ................................... $tab[23][0] = "Pytanie 24 - Where was the best Patolog's new year party ?"; $tab[23][1] = "A - at Bazyl's"; $tab[23][2] = "B - at Pałdyna's"; $tab[23][3] = "C - at paralityk's"; $tab[23][4] = "D - at closed ward"; $tab[23][5] = 1; $koniec = false; // poniższym if'em sprawdzamy, czy formularz został wysłany $numer = $_POST['numer']; $_SESSION['bylo'][]=$numer;} if($_POST['odp']==$tab[$numer][5]){ $poprawne = $_POST['poprawne']; $poprawne++; }else{ $poprawne = $_POST['poprawne']; } $numer++; $koniec = true; } }else{ $numer = 0; $poprawne = 0; } if($koniec==true){ if($poprawne<=15){ } else{ } }else{ for($x = 0; $x < 1; $x++) { { } echo " <form action=\"index.php\" method=\"post\"> <div class=\"z\"> Test wiedzy o piosenkach HIP-HOP-u wielojęzyczny </div> <div class=\"y\">".$tab[$numer][0]."</div> <div class=\"x\"><br><input type=\"radio\" name=\"odp\" value=\"1\"> ".$tab[$numer][1]."</div> <div class=\"x\"><br><input type=\"radio\" name=\"odp\" value=\"2\"> ".$tab[$numer][2]."</div> <div class=\"x\"><br><input type=\"radio\" name=\"odp\" value=\"3\"> ".$tab[$numer][3]."</div> <div class=\"x\"><br><input type=\"radio\" name=\"odp\" value=\"4\"> ".$tab[$numer][4]."</div> <div class=\"x\"><br><input type=button value=\" Poprzednie \" onClick=\"history.back();\"> <input type=\"submit\" value=\" Następne \" ></div> <hr> <input type=\"hidden\" name=\"numer\" value=\"".$numer."\" /> <input type=\"hidden\" name=\"poprawne\" value=\"".$poprawne."\" /> </form> "; } } //ob_end_flush(); ?>