Skip to content

Instantly share code, notes, and snippets.

Created May 26, 2011 11:01
Show Gist options
  • Save anonymous/992918 to your computer and use it in GitHub Desktop.
Save anonymous/992918 to your computer and use it in GitHub Desktop.
$data = array(
'first_name' => $this->form_validation->first_name_error,
'last_name' => $this->form_validation->last_name_error,
'country' => $this->form_validation->country_error,
'region' => $this->form_validation->region_error,
'email' => $this->form_validation->email_error,
'email_confirm' => $this->form_validation->email_confirm_error,
'dob_day' => $this->form_validation->dob_day_error,
'dob_month' => $this->form_validation->dob_month_error,
'dob_year' => $this->form_validation->dob_year_error,
'username' => $this->form_validation->username_error,
'password' => $this->form_validation->password_error,
'password_confirm' => $this->form_validation->password_confirm_error
);
echo json_encode($data);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment