Shawna C
2009-09-17 16:42:37 UTC
Here's the code if anyone feels very generous and could add the right bit in the right place to make this happen! Thanks.
$saving = $_REQUEST['saving'];
if ($saving == 1) {
$data = $_POST['data'];
$file = "text_files/a1txt.txt";
$fp = fopen($file, "w") or die("Couldn't open $file for writing!");
fwrite($fp, $data) or die("Couldn't write values to file!");
fclose($fp);
echo "Saved to $file successfully!";
}
?>