Php Line breaks using nl2br

I’ve ran into a few situations where a user was to fill out a form but their use of “enter” wasn’t being counted. In other words, all paragraphs were crammed together into one.

Using php’s nl2br function automatically inserts “enter” where the user has placed them.

Brandon

Leave a Reply

You must be logged in to post a comment.