Gossamer Forum
Home : Products : DBMan : Customization :

my data.db has break tag,how to get rid it

Quote Reply
my data.db has break tag,how to get rid it
Everytime if user fill in a texarea,if he ENTER to make a new line of message,there is a break tag appeare in data.db.Also if he login to modify the record it appear break tag in the texarea.I want to get rid of that break tag in both data.db and in modify teaxarea.But user could see what his message look like,break include i mean but not show it in break tag in modify textarea.

Sorry,if this ever posted but I can not found threads that match ny problem

How to get rid of break tag in both data.txt and when modify

Regards,
Act.
I am new to cgi, Thank you for your help.
Quote Reply
Re: my data.db has break tag,how to get rid it In reply to
Do you by any chance have a break tag within your html_record_form when defining your textarea field?

There has to be someplace where you are adding this code within the form definition.

An example of what might cause this would be to have something like this:
<TEXTAREA NAME="Comments" ROWS="7" COLS="50" WRAP="VIRTUAL" MAXLENGTH="1000">$rec{'Comments'}<BR></TEXTAREA>

Normally to create automatic line breaks, which wouldn't get stored in your .db file would be to use:

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

at the top of either html_record or html_record_long

Hope this helps

Unoffical DBMan FAQ
http://webmagic.hypermart.net/dbman/
Quote Reply
Re: my data.db has break tag,how to get rid it In reply to
i tested posting new record and it still the same.
it look like
W<BR>E<BR>R in textarea when i login to modify,and also the same in data.db

Regards,
Act.
I am new to cgi, Thank you for your help.
Quote Reply
Re: my data.db has break tag,how to get rid it In reply to
Check your *html.pl file for the following code:
$rec{'Name of your field'} =~ s//<BR>/g;

If found, try deleting it (make a copy of the file first -- just in case) and see if that does the trick.

Quote Reply
Re: my data.db has break tag,how to get rid it In reply to
no, i dont have that code on html,but
$rec{'Info'} =~ s/\n/<BR>/g;

at sub html_record ,sub html_record_long

Regards,
Act.
I am new to cgi, Thank you for your help.