Removing Unwanted Characters From a Web Form Submission
Gregory Lypny
gregory.lypny at videotron.ca
Mon Nov 8 08:00:58 EST 2010
Hello everyone,
I'm building an On-Rev site, and one of the pages will be a form with a field that is intended for the submission of about a page of comments. I want to gather the submissions and process them as an array in LiveCode with the contents of another form field as the key. It would look something like
stringKey1 <itemDelimiter> longStringOfComments1
stringKey2 <itemDelimiter> longStringOfComments2
stringKey3 <itemDelimiter> longStringOfComments3
and so on. I need to convert the comments to a string by removing line feeds and perhaps other characters that might cause problems. Is removing Return and Tab enough?
replace return with space in longStringOfCommentsNum
replace tab with space in longStringOfCommentsNum
Because it is coming down from a server, I'm not sure whether I should refer to other linefeed characters and what those are.
Regards,
Gregory
More information about the use-livecode
mailing list