Quote:
|
Originally Posted by Jamie
Code:
if(isset($_POST["notes"])){
$file = fopen("note.txt",w);
if(fwrite($file,$_POST["notes"])){
echo "File Written Successfully";
|
just my opinion, but don't you think the fopen should be
fopen("note.txt",a+);?
just so if he needs to store more notes in the same file it doesn't overwrite it because the file pointer starts at the end.