编码器表单没有提交字段


codeigniter form not submitting fields

我是一个编码新手。我被困在一个问题,我的形式是不张贴值,我不知道为什么。目前的网站工作良好的本地服务器和我的测试服务器。当我在客户端服务器上传输完整的站点时,出现了这个问题。

我已经检查了,htaccess是启用的。我还粘贴了视图和控制器。请帮帮我

<<p> 视图/strong>
<form name="form1" method="post" action="index.php/search/make_url">
    <div class="search_form">
        <label for="shop"></label>
        <select name="category" id="select">
          <option value="0">-- Shops / Webshops --</option>
          <?php 
            $cats=load_categories();
            foreach($cats as $cat){
          ?>
            <option value="<?php echo $cat->cat_name_en."---".$cat->catId;?>"><?php echo $cat->cat_name_en;?></option>
          <?php }?>
        </select>
        <select name="product">
          <option value="0">-- <?php echo $this->lang->line("text_select_prod");?> --</option>
          <?php 
            $cats=load_products();
            foreach($cats as $cat){
          ?>
          <option value="<?php echo $cat->p_name_en;?>---<?php echo $cat->pId;?>"><?php echo $cat->p_name_en;?></option>
          <?php }?>
        </select>
        <label for="select2"></label>
        <select name="brand" id="brand">
          <option value="0">-- <?php echo $this->lang->line("text_select_chose_brand");?> --</option>
          <?php 
            $cats=load_brands();
            foreach($cats as $cat){
          ?>
          <option value="<?php echo $cat->brand_name_en;?>---<?php echo $cat->brandId;?>"><?php echo $cat->brand_name_en;?></option>
          <?php }?>
        </select>
        <label for="select3"></label>
        <select name="country" id="country"  onchange="getCity(this.value);">
          <option value="0">-- <?php echo $this->lang->line("text_select_country");?> ---</option>
          <?php 
            $cats=load_country();
            foreach($cats as $cat){
          ?>
          <option value="<?php echo $cat->cn_name;?>---<?php echo $cat->cnId;?>"><?php echo $cat->cn_name;?></option>
          <?php }?>
        </select>
        <label for="select4"></label>
        <div id="cityBlock">
        <select name="city" id="city">
          <option value="0">-- <?php echo $this->lang->line("text_select_city");?> --</option>
        </select>
        </div>
        <input type="submit" name="btn" value="<?php echo $this->lang->line("text_btn_submit");?>">
    </div>
    </form>
控制器

public function make_url()
{
    $url=$this->uri->assoc_to_uri($_POST);
    redirect(base_url()."index.php/search/for/". $url);
}

Thanks in advance

检查如下:

<?=form_open('immovable/personal/add_personal');?>
<input type='text' id='fname' name='fname' required />
<input type='text' id='lname' name='lname' required />
<input type='submit' value='Submit' />
<?=form_close()?>

我后来解决了这个问题。问题是在Head标签中使用了基标签。我只是把它删除了,网站就能正常运行了。

$config[suffix]是上述问题的解

请参考此链接以获得更好的解释