Skip to content

Instantly share code, notes, and snippets.

@silentworks
Forked from anonymous/gist:992918
Created May 26, 2011 11:10
Show Gist options
  • Save silentworks/992936 to your computer and use it in GitHub Desktop.
Save silentworks/992936 to your computer and use it in GitHub Desktop.
$data = array(
'first_name' => $this->form_validation->error('first_name'),
'last_name' => $this->form_validation->error('last_name'),
'country' => $this->form_validation->error('country'),
'region' => $this->form_validation->error('region'),
'email' => $this->form_validation->error('email'),
'email_confirm' => $this->form_validation->error('email_confirm'),
'dob_day' => $this->form_validation->error('dob_day'),
'dob_month' => $this->form_validation->error('dob_month'),
'dob_year' => $this->form_validation->error('dob_year'),
'username' => $this->form_validation->error('username'),
'password' => $this->form_validation->error('password'),
'password_confirm' => $this->form_validation->error('password_confirm')
);
echo json_encode($data);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment