How to change password in the CodeIgniter framework
How to send forgot password in CodeIgniter framework PHP. Here we using 2 files to insert data in MySQL: Forms.php Path: codeIgniter\application\controllers\Forms.php forgot_pass.php Path: codeIgniter\application\views\change_pass.php Forms.php (Controller) <?php class Forms extends CI_Controller { public function __construct() { parent::__construct(); $this->load->database(); $this->load->library(‘session’); $this->load->helper(‘url’); $this->load->model(‘Hello_model’); } public function forgot_pass() { if($this->input->post(‘forgot_pass’)) { $email=$this->input->post(’email’); $que=$this->db->query(“select pass,email from user_login where email=’$email'”); $row=$que->row();…
Read More “How to change password in the CodeIgniter framework” »