Welcome Guest, Not a member yet? Register   Sign In
Validation
#8

[eluser]SeanJA[/eluser]
Code:
$rules['firstname'] = "trim|required|max_length[40]|xss_clean";
$rules['lastname'] = "trim|required|max_length[40]|xss_clean";
$rules['status'] = "required|xss_clean";
...
$rules['password'] = "trim|callback_password_check|xss_clean";
$rules['newpassword'] = "trim|matches[passconf]|xss_clean";
$rules['passconf'] = "trim|xss_clean";

This is what I had prior to this, but I have decided to move the password part out to another form as people would probably not be in the habit of changing their passwords as much as they would be changing other parts of the profile. Thanks for the help though!


Messages In This Thread
Validation - by El Forum - 07-02-2008, 01:38 AM
Validation - by El Forum - 07-02-2008, 03:59 AM
Validation - by El Forum - 07-02-2008, 07:46 AM
Validation - by El Forum - 07-02-2008, 09:56 AM
Validation - by El Forum - 07-02-2008, 10:05 AM
Validation - by El Forum - 07-02-2008, 10:12 AM
Validation - by El Forum - 07-02-2008, 10:12 AM
Validation - by El Forum - 07-02-2008, 10:20 AM



Theme © iAndrew 2016 - Forum software by © MyBB