|
我的代码如下:
<?php
class Loading extends Controller
{
function submit()
{
$this->load->view('index.php');
}
function showInfos()
{
$name = $_POST["name"];
$sex = $_POST["sex"];
//$sex = iconv('UTF-8','GBK',$sex);
$this->load->database();
$this->db->query("insert into user(name,sex)values('$name','$sex')");
redirect("showinfo/showData");
}
}
?>
出现“Call to undefined function redirect()”这个错误,是什么原因啊?请各位指点。 |
|