SHOW:
|
|
- or go back to the newest paste.
| 1 | <script> | |
| 2 | var food=document.getElementById('food').value;
| |
| 3 | var car=document.getElementById('car').value;
| |
| 4 | if(food=='') | |
| 5 | {
| |
| 6 | return false; | |
| 7 | } | |
| 8 | if(car=='') | |
| 9 | {
| |
| 10 | return false; | |
| 11 | } | |
| 12 | - | xmlhttp.open('get', '<?php echo site_url('beranda/show');?>?food='+food+'&car='+car, true); //error
|
| 12 | + | xmlhttp.open('get', '<?php echo site_url();?>/index.php/beranda/show?food='+food+'&car='+car, true); //error
|
| 13 | </script> | |
| 14 | //-Controller- | |
| 15 | //Beranda.php | |
| 16 | class Beranda extends CI_Controller {
| |
| 17 | ||
| 18 | public function show(){
| |
| 19 | $get = $this->input->get(); | |
| 20 | print_r($get); | |
| 21 | //$data['food']=$this->show->fetch_food($food); | |
| 22 | //$data['car']=$this->show->fetch_car($car); | |
| 23 | //$this->load->view('modal',$data);
| |
| 24 | } | |
| 25 | ||
| 26 | } |