Line break in Text box

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Benjamin Anthony
    New Member
    • Mar 2010
    • 4

    #1

    Line break in Text box

    i have placed a combobox linked to textbox.
    the options in combo box is as follows:
    1) Mail to Manager
    2) Mali to Supervisor
    3) Mail to associate
    if i select either of the option a common template of mail appears in textbox which is already mentioned in coding.
    I am writing this coding on note pad as i cannot use any other software in my work place.
    when i select the option the whole mail appears in text box. But the line breaks are missing.
    When i copy the text from the text box and past in email it should look like this:
    Hello,
    Subject :-----------------
    Respected Sir............ .....

    But insted i get as follows:
    Hello, Subject :------------- Respected Sir...........


    CAN ANY ONE HELP
  • Mayur2007
    New Member
    • Aug 2007
    • 67

    #2
    Hello,

    Try using this PHP function nl2br($str); hope it will help you.

    Thanks & Regards,
    Mayur Bhayani

    Comment

    Working...