Welcome Guest, Not a member yet? Register   Sign In
Error with version 2.0.2
#1

[eluser]Khaled Mahmud Tuhin[/eluser]
i am an amateur with codeigniter. i have managed to create a login from but after clicking login button no data can be seen.

in controller directory i have created code.php:
Code:
<?php class Code extends CI_Controller {

function __construct()
{
  parent::__construct();
  $this->view_data['base_url'] = base_url();
}
    
    public function index (){
        $this->load->view('index_code', $this->view_data);
        
        }
        function login()
        {
            
        echo "This is the out put" ;
        }
        
        
        }

in view directory i have created index_controller directory:
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
&lt;html &gt;
&lt;head&gt;
&lt;meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /&gt;
&lt;title&gt;Untitled Document&lt;/title&gt;
&lt;/head&gt;

&lt;body&gt;
Hello i Think this time i can do it.
Lets See about it
<h2>Log in to you Account</h2>
&lt;?php echo form_open(base_url() . 'login'); ?&gt;
<ul>
<li>
<label>username:</label>
<div>&lt;?php echo form_input(array('id' => 'username', 'name'=> 'username' )) ?&gt;
</li>

<li>
<label>password</label>
<div>&lt;?php echo form_input(array('id' => 'password', 'name'=> 'password' )) ?&gt;
</li>
<li> &lt;?php echo form_submit(array('name' =>'submit') ,'Login') ?&gt;</li>
</ul>
&lt;?php echo form_close(); ?&gt;


&lt;/body&gt;
&lt;/html&gt;
//i have also created
Code:
$autoload['helper'] = array('form','url');
please tell me what should i do.


Messages In This Thread
Error with version 2.0.2 - by El Forum - 07-03-2011, 12:49 AM
Error with version 2.0.2 - by El Forum - 07-03-2011, 02:40 AM
Error with version 2.0.2 - by El Forum - 07-03-2011, 05:21 AM
Error with version 2.0.2 - by El Forum - 07-04-2011, 10:40 PM
Error with version 2.0.2 - by El Forum - 07-05-2011, 05:11 AM
Error with version 2.0.2 - by El Forum - 07-05-2011, 07:01 AM
Error with version 2.0.2 - by El Forum - 07-05-2011, 07:49 AM
Error with version 2.0.2 - by El Forum - 07-05-2011, 08:29 AM
Error with version 2.0.2 - by El Forum - 07-05-2011, 09:29 AM
Error with version 2.0.2 - by El Forum - 07-05-2011, 10:44 AM
Error with version 2.0.2 - by El Forum - 07-09-2011, 04:22 AM
Error with version 2.0.2 - by El Forum - 07-09-2011, 10:57 PM
Error with version 2.0.2 - by El Forum - 07-09-2011, 11:13 PM



Theme © iAndrew 2016 - Forum software by © MyBB