Small issues in the CI framework

Source: Internet
Author: User
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.

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.