Welcome Guest, Not a member yet? Register   Sign In
How to screen $_POST data before inserting into database?
#2

[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";
$rules['password'] = "trim|required|matches[passconf]|md5";
$rules['passconf'] = "trim|required";
$rules['email'] = "trim|required|valid_email";

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-20-2008, 05:56 AM



Theme © iAndrew 2016 - Forum software by © MyBB