<body bgcolor="gray"></body><?php $name=$_POST['name']; $text=$_POST['text']; $email=$_POST['email']; $submit=$_POST['submit'];if ($submit== true){ if (($name == '') && ( $text=='')){ $error = 'Bitte Geben Sie ihren Name und Ihren Text ein. Danke!'; } else { $fp = fopen('shout.txt' , 'r+'); fwrite($fp,'<table><tr><td bgcolor=#C0C0C0><font size=1><font color=white><b><u>Name:</b></u></font></font></td><td bgcolor=#C0C0C0><font color=white><font size=1><b><u>E-mail:</b></u></font></font></td></tr><tr><td bgcolor=#FFFFFF><font size=2>'); fwrite($fp, $name); fwrite($fp, '</font></td><td bgcolor=white><font size=2>'); fwrite($fp, $email); fwrite($fp, '</font></td></tr></table><table><tr><td bgcolor=#C0C0C0><font color=white><font size=1><b><u>Text:</u></b></font></font></td></tr><tr><td bgcolor=white><font size=2>'); fwrite($fp,$text); fwrite($fp, '</font></td></tr></table>'); fclose($fp); $rfp = fopen('shout.txt', 'r'); $data = file('shout.txt'); fclose($rfp); for ($i=0 , $a = count($data);$i<$a;$i++ ){ echo $data[$i]; } echo $data[$i]; }} else { echo 'Um Nachrichten lesen zu koenen bzw. selber schreiben musst du die Felder ausfuellen.'; echo '<br><a href=form.html>Zuruck</a>'; echo $data[$i];}