Small issues in the CI framework
The view files are 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, I call the show () method to show two buttons, a replacement, a delete, click Replace will go to the Updata function, and then output the button name, but click Delete or turn to Updata then error, but if you delete the replacement button after the Delete button can be successfully submitted. My Delete button file submission address all right AH. Ask God for help to solve
------to solve the idea----------------------
Say you what good, obviously is front desk HTML question, see your form, form, from all write wrong
------to solve the idea----------------------
Action is wrong, you should use the built-in function of CI