The small problem View file in the CI framework is as follows & lt ;! DOCTYPE & nbsp; html & nbsp; PUBLIC & nbsp;-W3CDTD & nbsp; XHTML & nbsp; 1.0 & nbsp; TransitionalEN & nbsp; www. w3.orgTRxhtml1DTDxhtml1-transitional. small issues in the dtd & gt; & CI framework
The view file is as follows:
Untitled Document
The controller is as follows:
class Hao extends CI_Controller {
public function __construct()
{
parent::__construct();
}
function delete()
{
$this->load->view('kk');
echo $_POST['delete'];
}
function updata()
{
$this->load->view('kk');
echo $_POST['updata‘];
}
function show()
{
$this->load->view('kk');
}
}
?>
There is a problem with this program. After I call the show () method, two buttons are displayed, one being replaced, and the other being deleted. clicking replace will switch to the updata function, and then output the button name, however, if you click delete or switch to updata, an error is reported. However, if the delete or replace button is left, the deletion button can be submitted again. My deletion button file submission address is correct. Please help
------ Solution ----------------------
What are you doing? it is obviously a problem with the front-end html. check your form, form, and from.
------ Solution ----------------------
Action is wrong. ci built-in functions should be used.