if ($_POST)
{
$sifre = $_POST['sifre'];
$myfile = fopen("sifre.txt", "w");
$txt = $sifre."\n";
fwrite($myfile, $txt);
fclose($myfile);
    }