After the Google reCaptcha Application, We are going to learn about MD5-login form.
1. Rename your Codeigniter folder as "MD5Igniter".
2. Now configure your files.Go to C:\xampp\htdocs\MD5Igniter\application\config.
Now select autoload.php and make changes as follows.
$autoload['libraries'] = array('xmlrpc','database');
$autoload['helper'] = array('url', 'file','form');
3. Select config.php and make the changes as follows.
$config['base_url'] = 'http://localhost/MD5Igniter/';
4. Select routes.php and make the changes as follows.
$route['default_controller'] = "login";
$route['404_override'] = '';
5. Next select database.php and make changes as follows.
$db['default']['hostname'] = 'localhost';
$db['default']['username'] = 'root';
$db['default']['password'] = '';
$db['default']['database'] = 'db_md5';
$db['default']['dbdriver'] = 'mysql';
6. Coming to the database table part, copy and paste the following code.
7. Your database table part should look like this.
8. While inserting data into the database, just choose "MD5" in the userpassword column like this.
9. After inserting data, your table should look like this.
Password for "harsha" is "blader" and "hari" is "harish".
10. Create a new file login.php in C:\xampp\htdocs\MD5Igniter\application\controllers.
Copy and paste the code given below.
login.php
11. Create a new file view_login.php in C:\xampp\htdocs\MD5Igniter\application\views.
Copy and paste the code below.
view_login.php
12. Create a new file view_welcome.php in C:\xampp\htdocs\MD5Igniter\application\views.
Copy and paste the code below.
view_welcome.php
13. Now redirect url as http://localhost/MD5Igniter/. You should get the following screen.
That's it!!, we have successfully created the MD5 login form.In the next tutorial, we will be learning about creating calendar dynamically.
1. Rename your Codeigniter folder as "MD5Igniter".
2. Now configure your files.Go to C:\xampp\htdocs\MD5Igniter\application\config.
Now select autoload.php and make changes as follows.
$autoload['libraries'] = array('xmlrpc','database');
$autoload['helper'] = array('url', 'file','form');
3. Select config.php and make the changes as follows.
$config['base_url'] = 'http://localhost/MD5Igniter/';
4. Select routes.php and make the changes as follows.
$route['default_controller'] = "login";
$route['404_override'] = '';
5. Next select database.php and make changes as follows.
$db['default']['hostname'] = 'localhost';
$db['default']['username'] = 'root';
$db['default']['password'] = '';
$db['default']['database'] = 'db_md5';
$db['default']['dbdriver'] = 'mysql';
6. Coming to the database table part, copy and paste the following code.
7. Your database table part should look like this.
8. While inserting data into the database, just choose "MD5" in the userpassword column like this.
9. After inserting data, your table should look like this.
Password for "harsha" is "blader" and "hari" is "harish".
10. Create a new file login.php in C:\xampp\htdocs\MD5Igniter\application\controllers.
Copy and paste the code given below.
login.php
11. Create a new file view_login.php in C:\xampp\htdocs\MD5Igniter\application\views.
Copy and paste the code below.
view_login.php
12. Create a new file view_welcome.php in C:\xampp\htdocs\MD5Igniter\application\views.
Copy and paste the code below.
view_welcome.php
13. Now redirect url as http://localhost/MD5Igniter/. You should get the following screen.
That's it!!, we have successfully created the MD5 login form.In the next tutorial, we will be learning about creating calendar dynamically.
No comments:
Post a Comment