<?php
$dat = "log.txt";
if($send != 1){
echo <<<html
<html><body>
<form action="bbs.php" method="post">
<input type=text name=name>
<input type=text name=bun>
<input type=hidden name=send value="1">
<input type=submit value="sousin">
</form></body></html>
exit;
} else {
$lines = file($dat);
$fp = fopen($dat,"wb+");
array_unshift ($lines, "$name<>$bun");
for($i=0;$i<count($lines);$i++){
echo ($lines[$i];)
}
echo "copyright doutei!";
?>