I'm working on codeigniter .i tried to call controller function in form action.
<form action="<?php echo site_url("Welcome/InsertValue");?>" method="post" name="frm1" >
this is perfectly working on local server.but in live server it's show 404 Page Not Found
error.
This is my controller function
function InsertValue(){
$this->load->database();
/*db(Insert)*/
$this->load->model("get_db");
$data = array(
'p_name' => $this->input->post('pname'),
'y_addr' => $this->input->post('addr'),
'rating' => $this->input->post('rating'),
'apartment' => $this->input->post('apartment'),
'web_url' => $this->input->post('website'),
'p_manage_qu' => $this->input->post('pcompany'),
'country' => $this->input->post('country'),
'city' => $this->input->post('city'),
'p_addr' => $this->input->post('paddr'),
'zip' => $this->input->post('zip'),
'contact' => $this->input->post('contact')
);
$this->get_db->insert1($data);
/*echo "new row added";*/
/*db(Insert)*/
$this->load->helper('url');
$this->load->view('supplier/property');
}