I guess one of the major questions to ask here is what language are you writing this in? Warlock made a good point in doing validation for characters. There are plenty of javascript codes out there that can help you out with that. Here's somewhere you may want to start looking:

Click this link