|
楼主 |
发表于 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";
} |
|