Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // input form
- <?php echo form_input('name', set_value('name', $user->name)); ?>
- // input form get data
- <?php echo $this->input->post('name'); ?>
- // rules from validation
- public $rules_admin = array(
- 'email' => array(
- 'field' => 'email',
- 'label' => 'Email',
- 'rules' => 'trim|required|valid_email|callback__unique_email|xss_clean'
- ),
- 'name' => array(
- 'field' => 'name',
- 'label' => 'Name',
- 'rules' => 'required'
- ),
- 'password' => array(
- 'field' => 'password',
- 'label' => 'Password',
- 'rules' => 'trim|required|matches[password_confirm]'),
- 'password_confirm' => array(
- 'field' => 'password_confirm',
- 'label' => 'Password Confirm',
- 'rules' => 'trim|required|matches[password]')
- );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement