if($_POST["text"]){
$fp = fopen("bbs.log",a);
fwrite($fp,$_POST["text"])
fclose($fp);;
}