Oto kod:
<!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 { } $dir = 'wpis.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 "; // 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>"; } else { $wpis2= "$wpis <br>" ; $a ='wpis.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>"; } echo "<html> <body style='width:800px; margin:auto;'> <div style='width:250px; height:500px; float:left; background:#ABC;'> " . file_get_contents('baza.txt') . "</div> <div style='width:250px; height:500px; float:right; background:#DF1111;'> " . file_get_contents('wpis.txt') . "</div> </body> </html>"; ?>
Pomożecie?Pozdro.