I would like to be able to load a file (summary.txt) into a textarea of a form, make changes, and save the changes to the file. I have everything working EXCEPT I must refresh the page after I hit submit to see the changes. The text file is OK but it reloads the previous text into textarea. Any suggestions?
<? $stuff = implode("",file("summary.txt"));?>
<textarea name="mytext" cols="50" rows="20">
<?php echo (htmlspecialchars($stuff)); ?>
$file = "summary.txt";
$fp = fopen("$file","w");