Forum Moderators: coopster
If I am understanding you correctly.
You want to load the contents of a txt file into e textarea, edit them and resave the txt file.
the steps involved are fairly straght forward
1. open the file using fopen [php.net], make sure you open it for reading and writing
2. get the contents of the file into a variable. You could use file_get_contents [php.net], fgets [php.net], fread [php.net] among others
3. echo [php.net] the contents of the variable into your textarea. something like
<textarea><? echo $myfilecontent;?></textarea>
4. once the changes are made you will need to fwrite [php.net] the content of your textarea back into the file
On the sumbit page (the page specified in the "action" attribute of the form), your file name will be
$_POST['choosefile']
Follow up on the links jatar_k gave in his post and use that $_POST['choosefile'] (or whatever your select field is named) and follow the examples given for fopen() etc.