Gossamer Forum
Home : Products : DBMan : Customization :

Carriage returns in Text Areas

Quote Reply
Carriage returns in Text Areas
 I am creating a recepie site and wanted the user to input the ingredients. However when I pull up the record I loose all formating. Is there a way to have dbman insert a <br> or maintain formatting where there is a carriage return?

Thanks,

Kim
Quote Reply
Re: Carriage returns in Text Areas In reply to
Yes.

In html_record, after

my (%rec) = @_;

add

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

Replace FieldName with the name of your textarea field.

------------------
JPD