Hi,
I am trying to write a script that will automatically add input from a webpage to a textfile using fwritie, the problem is it's overwriting the last text that was inputed into the file rather than appending it. Code is down below, any thoughts?
<?php
$file = fopen("test.txt","w");
echo fwrite($file,$_POST["name"]);
fclose($file);
?>