Re: [PHP] Replace linefeed/newline from text inputs with br tag?

2002-09-23 Thread David T-G
John, et al -- ...and then John Holmes said... % % If i have a textarea form input for users and they enter in return % spaces, % how can i replace the ascci chars with html tags? % % It'd be great if they had a function for this...they could call it % nl2br() or something... Yeah. It

RE: [PHP] Replace linefeed/newline from text inputs with br tag?

2002-09-23 Thread John Holmes
linefeed/newline from text inputs with br tag? John, et al -- ...and then John Holmes said... % % If i have a textarea form input for users and they enter in return % spaces, % how can i replace the ascci chars with html tags? % % It'd be great if they had a function

Re: [PHP] Replace linefeed/newline from text inputs with br tag?

2002-09-23 Thread David T-G
John, et al -- ...and then John Holmes said... % % Okay, you got me on that one, but why do you need to remove the In my case, I had a newline-delimited file of field@@data field@@data field@@data and when the data had an embedded newline like comment@@this is a long comment

[PHP] Replace linefeed/newline from text inputs with br tag?

2002-09-22 Thread Patrick Lebon
If i have a textarea form input for users and they enter in return spaces, how can i replace the ascci chars with html tags? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Replace linefeed/newline from text inputs with br tag?

2002-09-22 Thread John Holmes
If i have a textarea form input for users and they enter in return spaces, how can i replace the ascci chars with html tags? It'd be great if they had a function for this...they could call it nl2br() or something... www.php.net/nl2br ---John Holmes... -- PHP General Mailing List