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

[eluser]PeterPan[/eluser]
Hi,

I've got the following problem:

On my page there are several ways to add a user:
1) A user registers himself
2) Added by an administrator
3) Imported by a XML-File

Do you have any suggestions how I can get rid of redundant validationcode?
Problem is that 1) and 2) are based on a form but not 3). So I can't use the validation class?!

I can use the validation class for 3) by setting default values for all elements but $this->validation->error_string; is not resettable so for 3 users I got 1+2+3 = 6 validation strings ;(

Any suggestions?

Thanks in advance!


Messages In This Thread
Central Validation - by El Forum - 12-15-2007, 09:54 AM
Central Validation - by El Forum - 12-15-2007, 10:09 AM
Central Validation - by El Forum - 12-15-2007, 10:22 AM
Central Validation - by El Forum - 12-15-2007, 04:00 PM
Central Validation - by El Forum - 12-15-2007, 04:35 PM
Central Validation - by El Forum - 12-15-2007, 08:10 PM
Central Validation - by El Forum - 12-18-2007, 12:51 PM
Central Validation - by El Forum - 12-18-2007, 01:20 PM
Central Validation - by El Forum - 02-13-2009, 01:25 AM
Central Validation - by El Forum - 02-13-2009, 08:20 AM
Central Validation - by El Forum - 02-16-2009, 09:25 AM



Theme © iAndrew 2016 - Forum software by © MyBB