So I have a basic ASP web form where users can type in their information which gets sent to a SQL database. We had an issue where users would type in the fields in all caps, so I set up a JavaScript to fix those entries so that the first letter would be capitalized and the rest would be lowercase. Now we have the issue with people who have Irish/Scottish names (such as MacDonald, McCoy, VanDyke, etc.) as well as those who have apostrophe or dashes in their names (such as O'Brian or O'Hara-Brown).
Does anybody have some script that would catch those and set them to the proper case before being sent to the database as well as catch those that typed in all caps and fix that as well?
--
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.