output from a <textarea>

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tolkienarda
    Contributor
    • Dec 2006
    • 316

    output from a <textarea>

    hi all

    i have a text area and when i submit that to a php page what does the php recive.

    example if i type :
    first line
    second line
    two spaces

    does it send somthing like
    first line<br>second line<br>two &nbsp;<br>

    or is somthing else sent to the php script

    thanks for any input

    eirc
  • ronverdonk
    Recognized Expert Specialist
    • Jul 2006
    • 4259

    #2
    Unless you have an html editor hooked into your textarea, like whizzywig or alike, you get the data as typed incl. \n .

    Ronald :cool:

    Comment

    • tolkienarda
      Contributor
      • Dec 2006
      • 316

      #3
      Originally posted by ronverdonk
      Unless you have an html editor hooked into your textarea, like whizzywig or alike, you get the data as typed incl. \n .

      Ronald :cool:
      ok so when after i save it in my database and reaccess it i will need to convert the /n to <br />.

      i will try that, thanks

      eric

      Comment

      • tolkienarda
        Contributor
        • Dec 2006
        • 316

        #4
        got it working thanks and wow am i stupid

        eric

        Comment

        • ronverdonk
          Recognized Expert Specialist
          • Jul 2006
          • 4259

          #5
          Originally posted by tolkienarda
          got it working thanks and wow am i stupid

          eric
          Nobody is stupid as long as one learns from it.

          Ronald :cool:

          Comment

          Working...