#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2000
    Location
    Redmond, WA
    Posts
    218
    Rep Power
    15
    Ok here's the scenario:

    I have a textarea input box that I am trying to read into a file. The file part is not a problem, however, I am trying to figure out how to detect the line-breaks in the textarea box and get rid of them.

    Does anyone know how this can be accomplished?

    Thanks in advance,

    Chris
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2000
    Posts
    33
    Rep Power
    15
    Hi, i am not such an expert, i'm just a newbie, and got the same problem.
    expect, i did look to the search function
    above in this screen ;-))

    here's a copy of the answer i found :If you output it as HTML it will do that just as if you typed that in your HTML code (returns not displayed).
    You can use the HTML <PRE> tag or you can use PHP's nl2br() function which converts new lines to <br>s

    good luck !

    Jan, The Netherlands.

Similar Threads

  1. Replies: 1
    Last Post: December 13th, 2003, 02:34 AM
  2. IPtables help for rh8
    By climber in forum Linux Help
    Replies: 0
    Last Post: December 1st, 2003, 09:26 PM
  3. Replies: 12
    Last Post: November 29th, 2003, 09:40 PM
  4. Formatting textarea input for HTML display
    By wallyweezle in forum PHP Development
    Replies: 2
    Last Post: October 25th, 2003, 10:23 AM
  5. Reading chars from input msg in C
    By gman932 in forum C Programming
    Replies: 3
    Last Post: October 18th, 2003, 07:57 PM

IMN logo majestic logo threadwatch logo seochat tools logo