Welcome Guest, Not a member yet? Register   Sign In
Replace special chars
#1

[eluser]Shella[/eluser]
Hi,
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?

Thanks

Shella
#2

[eluser]CroNiX[/eluser]
Yes, look at the Form Validation class.
#3

[eluser]Aken[/eluser]
In addition, you can sanitize strings into URL-appropriate versions using the url_title() helper function.
#4

[eluser]Shella[/eluser]
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.

Cheers




Theme © iAndrew 2016 - Forum software by © MyBB