Posting text.

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

    Posting text.

    Hi group.
    I need to post text to a PHP page for introducing that text to a database.
    Is there any function that convert my text into HTML before introduce it in
    the database?
    I need this for introducing comments directly from <TEXTAREA> HTML' objects
    to a database, and get it formated when I show it latter in normal HTML
    files.
    For example, if I press ENTER key then I need to represent this new line
    when some one see the comments latter, other way if I introduce it without
    the concerns I'm exposing here, the text will be one just paragraph without
    line breaks.
    I've read a solution for this a few months ago, but I can't remember
    where...
    Any help hould be greattly appreciated.


    Best regards,

    Nuno Paquete
  • Geoff Berrow

    #2
    Re: Posting text.

    I noticed that Message-ID: <41001791$0$176 2$a729d347@news .telepac.pt>
    from Nuno Paquete contained the following:
    [color=blue]
    >For example, if I press ENTER key then I need to represent this new line
    >when some one see the comments latter, other way if I introduce it without
    >the concerns I'm exposing here, the text will be one just paragraph without
    >line breaks.[/color]

    nl2br()
    --
    Geoff Berrow (put thecat out to email)
    It's only Usenet, no one dies.
    My opinions, not the committee's, mine.
    Simple RFDs http://www.ckdog.co.uk/rfdmaker/

    Comment

    Working...