Announcement

Collapse
No announcement yet.

Need some help.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Need some help.

    I am trying to get it so when I press enter in a text box it makes a new line when I call it up from the database it shows it on a new line. Anyone know how to do this?
    http://www.wdwforum.net/smallsig.php

  • #2
    nl2br()

    It sounds to me as if you're in need of the nl2br() function.
    PHP Code:
    // An example.
    $string "this is just a little\ntesting string..";
    echo 
    nl2br($string); 

    Comment


    • #3
      So my users have to type \n to go to a new line? Seems kinda inneficent.
      http://www.wdwforum.net/smallsig.php

      Comment


      • #4
        Originally posted by WDWInsider
        So my users have to type \n to go to a new line? Seems kinda inneficent.
        No, an enter is a newline, which is \n.

        Comment

        widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
        Working...
        X