PDA

View Full Version : multiline input boxes dont send <enter>


eggnogg
07-02-2003, 01:06 PM
heya !

how do i "catch" an <enter> in a multiline input text box, with php?

regards
eggnogg

freddycodes
07-07-2003, 06:10 AM
What do you mean by catch? Are you trying to display the entered text in an html document or something? <enter> in multiline textboxes show up as newline characters which html does not recognize, you would need to convert them to <br> tags to show them in html.

Check out nl2br()
http://www.php.net/nl2br