• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


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