Welcome Guest, Not a member yet? Register   Sign In
Select AND / OR problem
#9

[eluser]Khoa[/eluser]
BTW, what I'm trying to do is to write a simple search function in Code igniter. It works well with "legal strings" but I'm struggling in covering all the possible scenario such as: when user enters simple JS statement like [removed]alert('blah blah blah');[removed]. What should we do in that case? Do you usually try to escape it and search for the whole string in a database? Or better just to strip out all <html> tags? Can you share some sample validation? Thanks.


Messages In This Thread
Select AND / OR problem - by El Forum - 06-09-2008, 12:29 AM
Select AND / OR problem - by El Forum - 06-09-2008, 12:43 AM
Select AND / OR problem - by El Forum - 06-09-2008, 01:24 AM
Select AND / OR problem - by El Forum - 06-09-2008, 01:41 AM
Select AND / OR problem - by El Forum - 06-11-2008, 01:34 AM
Select AND / OR problem - by El Forum - 08-29-2008, 12:08 AM
Select AND / OR problem - by El Forum - 08-29-2008, 01:01 AM
Select AND / OR problem - by El Forum - 08-29-2008, 01:33 AM
Select AND / OR problem - by El Forum - 08-29-2008, 01:36 AM



Theme © iAndrew 2016 - Forum software by © MyBB