Ninjakreborn Posted October 4, 2006 Share Posted October 4, 2006 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? Quote Link to comment https://forums.phpfreaks.com/topic/22976-solved-from-phpfaq-at-the-top/ Share on other sites More sharing options...
thedarkwinter Posted October 4, 2006 Share Posted October 4, 2006 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 Quote Link to comment https://forums.phpfreaks.com/topic/22976-solved-from-phpfaq-at-the-top/#findComment-103698 Share on other sites More sharing options...
Ninjakreborn Posted October 4, 2006 Author Share Posted October 4, 2006 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. Quote Link to comment https://forums.phpfreaks.com/topic/22976-solved-from-phpfaq-at-the-top/#findComment-103702 Share on other sites More sharing options...
Ninjakreborn Posted October 4, 2006 Author Share Posted October 4, 2006 Ah, very helpful, the wordwrap, mixed with the pre tags worked perfectly, thanks. Quote Link to comment https://forums.phpfreaks.com/topic/22976-solved-from-phpfaq-at-the-top/#findComment-103710 Share on other sites More sharing options...
Barand Posted October 4, 2006 Share Posted October 4, 2006 [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 Quote Link to comment https://forums.phpfreaks.com/topic/22976-solved-from-phpfaq-at-the-top/#findComment-103726 Share on other sites More sharing options...
Ninjakreborn Posted October 4, 2006 Author Share Posted October 4, 2006 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. Quote Link to comment https://forums.phpfreaks.com/topic/22976-solved-from-phpfaq-at-the-top/#findComment-103748 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.