Gossamer Forum
Home : Products : DBMan : Customization :

Code to convert newline to ''

Quote Reply
Code to convert newline to ''
I am using Big Nose Bird's bnbform.cgi to gather input from users for a service request database and then automatically write it to the default.db file. In one of the fields, which is a textarea field for description of the problem, users can hit the enter key to add space. When DB Man gets a hold of the data it sees this as a newline and treats it as the start of a new record. Anyone know of the code that I could add to the bnbform.cgi script to convert the newline chars to ' ' (i.e. the same way that DB Man treats them)?

I have posted my bnbform.cgi here: http://www.csulb.edu/~jwg/bnbform.txt

Subject Author Views Date
Thread Code to convert newline to '' glfnetm 924 Sep 20, 2000, 3:23 PM
Post Re: Code to convert newline to ''
sponge 886 Sep 20, 2000, 6:37 PM