Small doubts in the CI framework

Source: Internet
Author: User
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
  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.