Remove special and unwanted characters - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Remove special and unwanted characters (/showthread.php?tid=10718) |
Remove special and unwanted characters - El Forum - 08-10-2008 [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 Remove special and unwanted characters - El Forum - 08-10-2008 [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-guide/libraries/validation.html |