<?php

$myFile = "shit.txt";
$fh = fopen($myFile, 'a') or die("can't open file");

$stringData = "<div>".strip_tags($_POST['avaus'])."</div>\n";
fwrite($fh, $stringData);

fclose($fh);

header("location:index.php");

?>