• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.