How to screen $_POST data before inserting into database? |
[eluser]Taff[/eluser]
Hey Tony, check out the validation class. http://ellislab.com/codeigniter/user-gui...ation.html That should be what you need. Scroll down to Prepping data where you will see Quote:$rules['username'] = "trim|required|min_length[5]|max_length[12]|xss_clean"; which will give you a basic idea of how it works. Taff |
Messages In This Thread |
How to screen $_POST data before inserting into database? - by El Forum - 06-19-2008, 11:09 PM
How to screen $_POST data before inserting into database? - by El Forum - 06-20-2008, 05:56 AM
|