A quick code to check special characters in the user input in a form. Instead of increasing load on server by checking for this on Server side , this task can be easily performed on client side using javascript. The following function can be applied for this task