Removing Unwanted Characters From a Web Form Submission

Gregory Lypny gregory.lypny at
Mon Nov 8 11:54:03 EST 2010

Thank you Devin,

Excellent!  And I will mess around with urlDecode and urlEncode as you suggested.


Gregory Lypny
Associate Professor of Finance
John Molson School of Business
Concordia University
Montreal, Canada

On Mon, Nov 8, 2010, at 10:51 AM, use-revolution-request at wrote:

> Gregory,
> If you want to be sure of catching all line delimiting characters you could do this:
>  replace (numToChar(13) & numToChar(10)) with space in tComments
>  replace numToChar(13) with space in tComments
>  replace numToChar(10) with space in tComments
> As far as which other characters you should remove, have you considered just using urlEncode/urlDecode? It's not specifically intended for this situation, but I would think urlEncode would safely convert any problematic characters, then you could urlDecode the string before you display it again.
> Regards,
> Devin
> Devin Asay
> Humanities Technology and Research Support Center
> Brigham Young University

More information about the use-livecode mailing list