Welcome Guest, Not a member yet? Register   Sign In
Form field with dynamic id validation
#2

You can check whether the request method is 'post'. If so, take the posted data into an array. Then scan the array for keys that begin with 'mechanic_'. For the detected such keys make the corresponding validation rules and register them. After that you can call if $this->form_validation->run() { ... } else { ... }
Reply


Messages In This Thread
RE: Form field with dynamic id validation - by ivantcholakov - 08-26-2016, 10:48 PM



Theme © iAndrew 2016 - Forum software by © MyBB