/    Sign up×
Community /Pin to ProfileBookmark

Paragraphs In Forms into Database

ok, something bugging me here.

I press enter to enter a new line in the form, then submit it.

Go to view it, and it appears all as one sentance if you know what I mean, rather than seperate paragraphs as intended.

Any ideas why? I have the input type set to text, maybe is should be mediumtext or blob or something?

to post a comment
PHP

4 Comments(s)

Copy linkTweet thisAlerts:
@jpmoriartyFeb 03.2005 — [URL=http://uk.php.net/manual/en/function.nl2br.php]nl2br()[/URL] is what you seek
Copy linkTweet thisAlerts:
@kevinmcqueenauthorFeb 03.2005 — spot on .... cheers
Copy linkTweet thisAlerts:
@pyroFeb 03.2005 — [i]Originally posted by jpmoriarty [/i]

[B][URL=http://uk.php.net/manual/en/function.nl2br.php]nl2br()[/URL] is what you seek [/B][/QUOTE]
Hey, hey... haven't seen you around in a while. ?
Copy linkTweet thisAlerts:
@jpmoriartyFeb 04.2005 — Ah, all this working as a civil servant is seriosuly tapping into my community spirit time. But I like to pop in to help with the simple ones from time to time ?
×

Success!

Help @kevinmcqueen spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...