Results 1 to 2 of 2

Thread: text file display problem...

  1. #1
    Join Date
    Aug 2006
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default text file display problem...

    firstly, i got i form that allow user to enter their description for some title. In the form i had an textarea that let user enter any string.

    then i will display based on the user adjustment in the textarea.
    for exmaple:
    user key in string 'abcd' then press 'enter' and continue key in 'edfg'....
    when the user submit, the pages should display
    abcd
    edfg
    at same time, it aslo write to a txt file based the user adjustment but must be in same line.
    continue upper example:
    the file should show display in "abcd<br />edfg"

    my problem is, i can do on html (display output) but i cant done what i want to do in text file.

    what i done in text file was:
    abcd
    <br />edfg

    i must done that, because this was an input to other program.

    anyone can help?

    thanks

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    http://php.net/manual/en/ref.filesystem.php

    Just look for commands like fopen, fwrite and fclose, depending on exactly what you need to do.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •