• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Allowing custom characters in validation

#1
[eluser]KeyStroke[/eluser]
Hi,

I'm trying to use the form_validation library to validate some fields in my application. The problem is the fields need to allow a custom set of characters. For example: the username field should only allow alpha characters, numbers, underscores and dots.

How is this done?

Appreciate your help.

#2
[eluser]GSV Sleeper Service[/eluser]
if none of the preset rules match, you'll have to make a custom callback function.
manual


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.