Welcome Guest, Not a member yet? Register   Sign In
Validate form with default values?
#4

[eluser]Sven Delle[/eluser]
OK!

Big apologies to all for freaking out in various post about this issue.

But I'll post my 'bug' here, as someone else could be doing the same mistake as me.

I tried (unintentionally) to have both a 'required' rule and a 'callback_' at the same time (idiot me)!

so instead of:
Code:
$this->form_validation->set_rules('username', 'Username', 'callback_check_username');

I had:
Code:
$this->form_validation->set_rules('username', 'Username', 'required', 'callback_check_username');

So, make sure your third parameter is the callback (beating myself). There's a couple of hours truly wasted!

Hope this post helps someone some day!


Messages In This Thread
Validate form with default values? - by El Forum - 04-18-2012, 12:58 PM
Validate form with default values? - by El Forum - 04-18-2012, 04:49 PM
Validate form with default values? - by El Forum - 04-18-2012, 04:53 PM
Validate form with default values? - by El Forum - 04-18-2012, 05:39 PM
Validate form with default values? - by El Forum - 04-18-2012, 05:55 PM



Theme © iAndrew 2016 - Forum software by © MyBB