simple text editor

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Dave

    simple text editor

    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
    help.


  • Alan Little

    #2
    Re: simple text editor

    Carved in mystic runes upon the very living rock, the last words of Dave
    of comp.lang.php make plain:
    [color=blue]
    > Can anyone tell me how I can open a file for editing in a textarea[/color]

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

    <TEXTAREA NAME="TheFile"> <?php =$thefile?></TEXTAREA>
    [color=blue]
    > save with the changes as they are in the textarea.[/color]




    --
    Alan Little
    Phorm PHP Form Processor

    Comment

    Working...