Message: Invalid argument supplied for foreach in CodeIgniter

后端 未结 3 1989
名媛妹妹
名媛妹妹 2021-01-17 06:06

i am facing few issues during an application of Codeigniter -- Created an function like

function searchUnivtab() {
        $country = $this->input->po         


        
3条回答
  •  有刺的猬
    2021-01-17 06:23

    function getSearchUniversity() {
      country = jQuery('[name=countryKey]').val();
      state = jQuery('[name=stateKey]').val();
      level= jQuery('[name=level]').val();
      degType= jQuery('[name=degType]').val();
      jQuery.ajax({
        type: "POST",
        url:baseurl+ 'welcome/searchUnivtab', 
        cache: false,
        data: {countryKey: country, stateKey: state, level: level, degType: degType},
        error: function()
        {
          //notify('Error: Your request could be processed.. try again..!!');
        },
        success: function(html)
        {
          jQuery('[name=universityList]').html(html);
          return false;
        }
      }); 
    }
    

提交回复
热议问题