avoid which characters in text fields with vb- and jscript?
- From: outzen@xxxxxxxxxxxxx (Jakob Outzen)
- Date: Mon, 09 May 2005 23:17:51 GMT
Working on a project making an intranet application - using mysql in a
native win2k3 srv/xp clients environment on our IIS 6.0 intranet
server. Have made various tables storing user input, and want to make
sure to clean user inputs for unwanted characters before storing in
dbase. Using the vbscript Replace funktion Im able to remove quotes
(single and double), and until recently thought this was sufficient,
however just found out that a line break - (user hitting enter in a
text field) will result in errors when retrieving the text from dbase.
Can anybody point me to a good ressource for a complete list of which
characters (hidden and printed) is likely to result in errors when
handled in vbscript (serverside) and jscript (clientside) - would also
be nice with a regular expression example of how to remove a list of
characters from a string (jscript and vbscript)
regards
Jakob Outzen
jo@xxxxxxxxxxxxxxxxx (remove "cutitout" to reply)
.
- Prev by Date: Change Drive letter for CD drive in Windows XP
- Next by Date: Re: WQL
- Previous by thread: Change Drive letter for CD drive in Windows XP
- Next by thread: Newbie question.
- Index(es):
Relevant Pages
|