Welcome Guest, Not a member yet? Register   Sign In
Remove special and unwanted characters
#1

[eluser]Yash[/eluser]
Hi,

I'm trying to enter a input value into url segment. Now problem is user can input any character so I want to remove all not allowed characters like ' " {[} etc...

I think I'm missing something.

Any thought?

Thank you
#2

[eluser]ywftdg[/eluser]
What if you ran form validation instead, to restrict what they entered? That way no special characters got entered in the first place.

http://ellislab.com/codeigniter/user-gui...ation.html




Theme © iAndrew 2016 - Forum software by © MyBB