Oto kod pliku index.php
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>Kaiba</title> <link rel="stylesheet" type="text/css" href="styl.css" /> <meta http-equiv="Refresh" content="20"> </head> Nick <font color="white">.................................. </font>Wiadomość <?php $dir = 'baza.txt'; // tworzymy plik baza.txt { } { exit; } { } $dane = "$imie"; { echo "<form action=\"\" method=\"POST\"><input type=\"textareas\" name=\"imie\" ><input type=\"textareas\" size=\"50\" name=\"wpis\"><input type=\"submit\" value=\"Wyślij\" class=\"button\"></form>"; } else { $wiadomosc = "$data - $imie <br>"; // zapis wszystkiego $wpis2= "$wpis <br>" ; $zapisz_do ='baza.txt'; echo "<form action=\"\" method=\"POST\"><input type=\"text\" color=\"#FFCC33\" name=\"imie\" ><input type=\"text\" size=\"50\" name=\"wpis\"><input type=\"submit\" value=\"Zobacz\" class=\"button\"></form>"; } <body style='width:800px; margin:auto;'> <div style='width:250px; height:500px; float:left; background:#ABC;'>$wiadomosc = $data - $imie</div> <div style='width:800px; height:500px; flaot:left; background:#DF1111;'>.$wpis2= $wpis</div> </body> </html>"); // wypisujemy naszą zawartość ?>
a oto index2.php
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>Kaiba</title> <link rel="stylesheet" type="text/css" href="styl.css" /> <meta http-equiv="Refresh" content="20"> </head> Nick <font color="white">.................................. </font>Wiadomość <?php $dir = 'baza.txt'; // tworzymy plik baza.txt { } { exit; } { } $dane = "$imie"; { echo "<form action=\"\" method=\"POST\"><input type=\"textareas\" name=\"imie\" ><input type=\"textareas\" size=\"50\" name=\"wpis\"><input type=\"submit\" value=\"Wyślij\" class=\"button\"></form>"; } else { $wpis = "$data - $imie - $wpis<br>"; // zapis wszystkiego $zapisz_do ='baza.txt'; echo "<form action=\"\" method=\"POST\"><input type=\"text\" color=\"#FFCC33\" name=\"imie\" ><input type=\"text\" size=\"50\" name=\"wpis\"><input type=\"submit\" value=\"Zobacz\" class=\"button\"></form>"; } ?>
Ewidentnie widze, że coś nie tak, bo tak wygląda pusty sb http://compblog.pl/k/index.php czyli już coś jest nie tak.
Liczę na waszą pomoc. Pozdro.