simple text editor

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
Can anyone tell me how I can open a file for editing in a textarea and save
with the changes as they are in the textarea. Do I need javascript for this
too, how does php know where to insert the cursor/data. Thanks for your

Re: simple text editor

Carved in mystic runes upon the very living rock, the last words of Dave
of comp.lang.php make plain:

Quoted text here. Click to load it

<?php $thefile = file_get_contents('myfile.txt');?>

<TEXTAREA NAME="TheFile"><?php =$thefile?></TEXTAREA>

Quoted text here. Click to load it

Alan Little
Phorm PHP Form Processor /

Site Timeline