Callbacks |
[eluser]aeternuslibertas[/eluser]
Hi How is everyone doing!? my question is with regard to callbacks... I was writing an application and wanted to check a user sign up for duplicate emails, just like this thread http://ellislab.com/forums/viewthread/168921/ my question is... how does the function, email_unique know to take the input value from the email field in the form into the parameter $str is it because of the Code: $this->form_validation->set_rules('email', 'Email', 'required|callback_email_unique'); Code: function email_unique($str) my approach looks something like this... Code: function email_unique() does it make a difference if i keep the Code: $str Code: $email=$this->input->post('email'); |
Messages In This Thread |
Callbacks - by El Forum - 06-09-2011, 04:36 PM
Callbacks - by El Forum - 06-09-2011, 07:09 PM
Callbacks - by El Forum - 06-09-2011, 08:30 PM
Callbacks - by El Forum - 06-09-2011, 11:01 PM
Callbacks - by El Forum - 06-12-2011, 05:28 PM
|