<form action "http://127.0.0.1/index.php/hxxmana/manage_login/" method='POST'>
-----------------------------我想在这里通过url给manage_login传两参数0,30--------------
<td>ID</td><td><input type=text name='manager_id' size=22></td>
<td>password</td><input type=password name='manager_password' size=22><br>
<input type=submit value="login"></form>
----------------------------------------------------------------------下面是controller里面的函数-------------------------------------
function manage_login($beging,$length)
{
$manager_id=$this->input->post('manager_id');
$manager_pass=$this->input->post('manager_password');
$this->load->database();
$result = $this->db->query("SELECT * FROM hhjl_managers WHERE manager_id = $manager_id AND password = $manager_pass");
if($result->num_rows()>0)
{
$sqlqe = "select * from hhjl_courses limit $begin,$length";
$data['rs'] = $this->db->query($sqlqe)->result();
$this->load->view('list_course',$data);
}
$this->db->close();
}