[eluser]entropy[/eluser]
I found the solution. The form code must be placed in a view that is loaded by the controller.
controller:
Code:
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Register extends CI_Controller {
public function index() {
$this->load->view('top');
$this->load->view('register');
$this->load->view('end');
}
}
?>
view:
Code:
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
$this->load->helper('form');
echo form_open('register/confirm');
$data = array(
'name' => 'username',
'id' => 'username',
'value' => '',
'maxlength' => '40',
'size' => '40'
);
echo form_input($data);
?>