Remove special and unwanted characters |
[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
[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 |
Welcome Guest, Not a member yet? Register Sign In |