Jump to content

Archived

This topic is now archived and is closed to further replies.

Ninjakreborn

solved-from phpfaq, at the top

Recommended Posts

I know it's in the php faq, but I have tried everything.

getting information from a text field, databasing it, and redisplaying it with the proper spacing.

I tried doing the nl2br before database, after database, on display.
I didn't fully understand what he meant in the faq?

Share this post


Link to post
Share on other sites
you can try using the html <pre> (preformatted text) tags around the field when you are displaying it, but you may have to change the font again within the tags...

i.e. echo "<pre>$value</pre>";

cheers,
tdw

Share this post


Link to post
Share on other sites
Good idea, but that just made it go haywire.

It killed the layout, wait, let me try wrapping that and then doing that, thanks, let me try that now.

Share this post


Link to post
Share on other sites
[quote author=businessman332211 link=topic=110478.msg446634#msg446634 date=1159967446]
I tried doing the nl2br before database, after database, on display.
I didn't fully understand what he meant in the faq?
[/quote]

http://www.phpfreaks.com/forums/index.php/topic,31047.msg112029.html#msg112029

Share this post


Link to post
Share on other sites
I know, that's what I was saying int eh post, I went over that specific thread 4-5 times, and I couldnt' figure out what you mean,t but it worked.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.