CI框架中的小问题
视图文件如下
<br /><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><br /><html xmlns="http://www.w3.org/1999/xhtml"><br /><head><br /><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><br /><title>无标题文档</title><br /></head><br /><br /><body style="text-align:center"><br /><br /><!--替换表单--><br /><form action="../hao/updata" method="POST" name="updata"><br /><input type="submit" name="updata" value = "替换"/><br /></from><br><br /><br /><br /><br /><!--删除表单--><br /><form action="../hao/delete" method="POST" name="delete"> <br /><input type="submit" name="delete" value = "删除"/><br /></form><br /><br /></body><br /></html><br />
<br /><?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');<br />class Hao extends CI_Controller {<br /><br /> public function __construct()<br /> {<br /> parent::__construct();<br /> }<br /><br /> function delete()<br /> {<br /> $this->load->view('kk');<br /> echo $_POST['delete'];<br /> }<br /><br /> function updata()<br /> {<br /> $this->load->view('kk');<br /> echo $_POST['updata‘];<br /> }<br /><br /> function show()<br /> {<br /> $this->load->view('kk');<br /> }<br />}<br />?><br />