Lamez Posted July 11, 2008 Share Posted July 11, 2008 I forgot the name of the function. What it does is when you enter text in a textfield, it adds the spaces. (I put this in the textfield) "Welcome to my page. Login Please" it comes out as: "Welcome to my page. Login Please" how can I make it look like what I put in the textfield? Quote Link to comment https://forums.phpfreaks.com/topic/114215-solved-textfield-question/ Share on other sites More sharing options...
cooldude832 Posted July 11, 2008 Share Posted July 11, 2008 nl2br??? Quote Link to comment https://forums.phpfreaks.com/topic/114215-solved-textfield-question/#findComment-587290 Share on other sites More sharing options...
Lamez Posted July 11, 2008 Author Share Posted July 11, 2008 ya I think that is it, let me try it out. Quote Link to comment https://forums.phpfreaks.com/topic/114215-solved-textfield-question/#findComment-587291 Share on other sites More sharing options...
DarkWater Posted July 11, 2008 Share Posted July 11, 2008 Use nl2br() on the text when you echo it out, not when you put it in the database so that it's easy to put it into a textfield for editing at a later date. Quote Link to comment https://forums.phpfreaks.com/topic/114215-solved-textfield-question/#findComment-587292 Share on other sites More sharing options...
Lamez Posted July 11, 2008 Author Share Posted July 11, 2008 yep that did it, thanks Quote Link to comment https://forums.phpfreaks.com/topic/114215-solved-textfield-question/#findComment-587295 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.