Hi i'm absolutely new in php. Here's a code i wrote:
<form name=one method action=file.php>
<input type=text name=hehe><br>
<input type=submit value="hit">
</form>
<?php
$txt=$hehe;
$fn="umes.txt";
$f = fopen($fn,"w");
fwrite($f,$txt);
fclose($f);
$f=fopen($fn,"rb");
$size=filesize($fn);
$content=fread($f,$size);
echo("<br>".$content);
?>
I want the text to added(append) on the txtfile every time when a new value is added from the input box.