PHP question

Hi !
I made my page and put it on free host that doesn’t suport mail function in php so I was looking for other solutions and found this…

I’m just a begginer in PHP…not even that but anyway…
I just found php so that the content is saved into txt file.

<?php 
$filename = 'directory/filename.txt'; 
$somecontent = "content that you want written to file here"; 
// Let's make sure the file exists and is writable first. 
if (is_writable($filename)) { 
 
// In our example we're opening $filename in append mode. 
// The file pointer is at the bottom of the file hence 
// that's where $somecontent will go when we fwrite() it. 
$handle = fopen($filename, 'a') or die("Cannot open file ($filename)"); 
// Write $somecontent to our opened file. 
fwrite($handle,$somecontent) or die("Cannot write to file ($filename)"); 
fclose($handle); 
} else { 
echo "The file ($filename) is not writable"; 
} 
echo "html code to be placed on the site if sucessful here."; 
?>

I would use $_POST[“content”]; so that users on my page would be able to write into DYNAMIC TEXT BOX couse my site is made in flash…
Var in flash would be “content”…Ok I think I would be able to make it work, but don’t have a clue how can I make this in that way that content that is already in my file wouldn’t be overwriten by new text that would be posted form my page? If you got any other ideas how to make this kind of posting
you’re welcome I really don’t know if this is the best solution … :book: