Welcome Guest, Not a member yet? Register   Sign In
Validation callback with input value as argument
#4

[eluser]Santiag0[/eluser]
[quote author="pistolPete" date="1239713906"]Do you really need to edit more than one database entry per page?

By the way:

Code:
// you need TWO underscores here: callback_ + _user_exists
$this->form_validation->set_rules('username[]', 'user name', 'trim|required|callback__user_exists');
[/quote]

Sorry, I make a mistake in that line, but is not the point.
I need to check if the username exist ONLY if has a diferent ID, because this is a control panel to manage all users of a system.
So I need to deal with the user_id[] value of the hidden input.

Thanks


Messages In This Thread
Validation callback with input value as argument - by El Forum - 04-13-2009, 10:56 PM
Validation callback with input value as argument - by El Forum - 04-14-2009, 01:58 AM
Validation callback with input value as argument - by El Forum - 04-14-2009, 03:42 AM
Validation callback with input value as argument - by El Forum - 04-14-2009, 09:01 AM



Theme © iAndrew 2016 - Forum software by © MyBB