Need help on HTML

Discussion in 'CSS' started by kks_krishna, Nov 4, 2007.

  1. #1
    HI,

    I am adding comments to my site. When user enerting the comments, it should be add in the same format how he has entered in the textbox. But, everything coming in the same line. Can anyone help me on this?
     
    kks_krishna, Nov 4, 2007 IP
  2. ska_mna

    ska_mna Peon

    Messages:
    11
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I expect this is the wrong forum for this question. If you're using PHP, then you need to echo the results out using nl2br(). Google "php nl2br".

    
    echo nl2br($textboxcontent);
    
    PHP:
     
    ska_mna, Nov 5, 2007 IP