[eluser]appleboy[/eluser]
Opera and Chrome are working now, so IE can't work?
You can try the following model code:
controller:
Code:
<?php
public function process()
{
$this->load->helper('security');
$username = $this->input->post("username");
$passwd = do_hash($this->input->post("password"));
$email = $this->input->post("email");
$data = array(
"username" => $username,
"passwd" => $passwd,
"email" => $email,
);
$this->load->model('members');
$this->members->register($data);
$this->data['title'] = "Registration done!";
$this->data['msg'] = "A private key of your account has been sent to your email address. Please, enter it in below form to confirm your account.";
$this->template->render($this->data);
}
?>
Model
Code:
<?php
class Members extends CI_Model {
public function register($data){
$this->db->insert('mytable', $data);
}
}
?>