Forums

Forums (http://www.abandonia.com/vbullet/index.php)
-   Programming (http://www.abandonia.com/vbullet/forumdisplay.php?f=25)
-   -   How To Make Html/php Forms Read New Lines? (http://www.abandonia.com/vbullet/showthread.php?t=13084)

Danny252 02-01-2007 06:22 PM

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?

The_EgAt 03-01-2007 12:38 AM

you could use nl2br()

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

(If I understood the question correctly)

Danny252 05-01-2007 08:20 PM

You did indeed.

*Whacks that in half his webpages*

Thankyou profusely, kind Icelandic sir.


The current time is 07:46 AM (GMT)

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