将两个变量传递给URL时遇到问题。它在localhost中工作正常,但不在托管(linux主机)..
我使用form_open();在视野中
和控制器(pickup.php):
<?php
function verifikasi($request_id, $unik) {
$pickup = $this->input->post('pickup');
$this->load->model('excel');
$this->load->model('request');
$data['results'] = $this->request->pickup($request_id, $unik);
foreach ($data['results'] as $key) {
$req_id = $key['req'];
$data['undg'][$req_id] = $this->excel->info($req_id);
foreach ($data['undg'] as $value) {
if (isset($_POST["pickup"])) {
$date = array(
'status' => '2',
'address' => $this->input->post('from_address'),
'lat' => $this->input->post('lat'),
'lon' => $this->input->post('lon'),
'pickup_time' => date("Y-m-d H:i:s", strtotime($pickup))
);
$this->db->where('request_Id', $request_id);
$this->db->update('request', $date);
$date = array(
'from_address' => $this->input->post('from_address'),
);
$this->db->where('request_Id', $request_id);
$this->db->update('excel', $date);
$data['msg'] = "SUKSES !!! Kami akan Menghubungi anda.";
}
}
}
$this->load->view('info', $data);
}
我应该在form_open()中添加任何其他值吗?