Forum Moderators: coopster
In write.php, get info from the $_POST array, such as:
$text = $_POST['text'];
To write the file, there's a lot of ways, but the simplest is:
file_put_contents($my_file, $text);
Of course you'll want to do error checking, etc with it.
You can use [php.net...] to look through the various functions for accessing and writing to files.