zj41355046 发表于 2014-12-10 20:40:49

求助

在Home这个控制器里面用函数渲染出注册后,利用action="./insert"传递,insert是home里面的另一个函数,用来处理注册信息,可是为什么会出现说找不到网页的信息

zj41355046 发表于 2014-12-10 20:42:47

public function index()
        {
                $this->load->view("index");
        }


还有
public function insert(){
        $name = $_POST['name'];
        $tel=$_POST['tel'];
        $banji=$_POST['banji'];
        $nums=$_POST['nums'];
        $email=$_POST['email'];
        $password=$_POST['password'];
       
        $data['name'] = $name;
        //$html = $this->load->view("insert",$data);
        $this->name = $name;
        $this->tel = $tel;
        $this->banji = $banji;
        $this->nums = $nums;
        $this->email = $email;
        $this->password = $password;
                if($this->db->insert("biao1",$this)){
        echo "yes";
        }else{
        echo "no";
        }

zj41355046 发表于 2014-12-10 20:43:09

<form method="post" action="./insert">
页: [1]
查看完整版本: 求助