Go Back   Forums > Community Chatterbox > Tech Corner > Programming
Memberlist Forum Rules Search Today's Posts Mark Forums Read
Search Forums:
Click here to use Advanced Search

Reply
 
Thread Tools Display Modes
Old 02-01-2007, 07:22 PM   #1
Danny252
I have a custom title!

 
Join Date: Oct 2003
Location: Telford, England
Posts: 1,303
Default

I've been wondering this for a while, and after searching, found no answer.

With a form for HTML/PHP, for example, the message posting form here on the forum, how do you make the code read new lines and save them as
s, rather than as one long chunk of text without new lines?

My forms, as they are, would ignore all the new lines in this and make this into one very long line.

Anyone?
__________________
I liked the old forum.. =/
Danny252 is offline                         Send a private message to Danny252
Reply With Quote
Old 03-01-2007, 01:38 AM   #2
The_EgAt
Abandonia nerd

 
Join Date: Aug 2004
Location: Hofudborgarsvadi, Iceland
Posts: 74
Default

you could use nl2br()

http://www.php.net/manual/en/function.nl2br.php

(If I understood the question correctly)
The_EgAt is offline                         Send a private message to The_EgAt
Reply With Quote
Old 05-01-2007, 09:20 PM   #3
Danny252
I have a custom title!

 
Join Date: Oct 2003
Location: Telford, England
Posts: 1,303
Default

You did indeed.

*Whacks that in half his webpages*

Thankyou profusely, kind Icelandic sir.
__________________
I liked the old forum.. =/
Danny252 is offline                         Send a private message to Danny252
Reply With Quote
Reply


Similar Threads
Thread Thread Starter Forum Replies Last Post
Color Lines troop18546 Approved Requests 3 13-09-2007 09:49 PM
Front Lines Strobe Games Discussion 16 13-10-2006 02:40 PM
Make Dosbox Larger Without Make It Fullscreen _\Magus/_ Tech Corner 4 02-05-2005 08:57 PM
Horizontal Lines Stroggy Tech Corner 11 27-04-2005 09:06 PM
Few Lines Under The Screenshot? Unknown Hero Old Suggestions 21 30-01-2005 06:37 PM

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump
 


The current time is 08:14 PM (GMT)

 
Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.