When reading this please keep in mind I am a complete novice! this is the first PHP thing I've tried....
I'm using a web form which passes its contents to a .php file, that adds whatever was in the form to a .txt file on the server. The .txt file is then used by flash to display the text. This is my code which (unusually for me) works.....
$out = fopen("text.txt", "w");
if (!$out) {
print("Opps! there was an error, please go back and try again.");
exit;
}
fputs($out,"text.textfield=$message");
fclose($out);
as you can see, the content of the form ($message) needs to have "text.textfield=" before it to tell flash what to do with it.
What i want to do now is when someone submits a new message, move the old message to another line starting "text.textfield2=" to create a sort of archive.
Basically i have no idea how to read the information from the .txt file I have, let alone how to get it two write back again in the right format.
help!😕