Gossamer Forum
Home : Products : DBMan : Customization :

Text Areas, turning lines breaks into < br >

Quote Reply
Text Areas, turning lines breaks into < br >
Ok, i know there is a way to turn the link breaks in a text area into
int eh code, and i had it the other day(i foudn it on the unnofficial FAQ), but now i can't find it, and it's not in my code....anyone help?
Thanks ahead of time....

http://members.cashsurfers.com/signup.asp?referrer=cmbest
http://www.mp3.com/cmb
Quote Reply
Re: Text Areas, turning lines breaks into < br > In reply to
After

my (%rec) = @_;

put

$rec{'Fieldname'} =~ s/\n/< BR >/g;

for the fields that require the line break to < BR > translation. Of course you gotta take out the spaces between the < > and the BR.

Quote Reply
Re: Text Areas, turning lines breaks into < br > In reply to
That's right. That's the one i had the otehr day, just deleted it, and lost the link....

thanks so much!

http://members.cashsurfers.com/signup.asp?referrer=cmbest
http://www.mp3.com/cmb