• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Replace special chars

I'm just seeking for some tips about how to manage a chars replacement.
My point is that in my system, when an user is registering, I create a directory.

Let's say... http://www.domain.com/user/nickname

where nickname is the nickname user had choose.

What I want is to grant that user do NOT insert characters as ? * à ... any kind of chars that you too would avoid.

Is there any Codeigniter function that can help me here?



Yes, look at the Form Validation class.

In addition, you can sanitize strings into URL-appropriate versions using the url_title() helper function.

Ok thanks for both reply.
I'd not try yet but I read about base64_valid and this shoud be excctly what I was looking for.


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

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