Note that there are some explanatory texts on larger screens.

plurals
  1. POcodeigniter form not submitting fields
    text
    copied!<p>I'm a newbie for codeigniter. I'm stuck at a problem, that my form is not posting values, I dont know why. Current site works fine on local server and my testing server. As I transferred complete site on clients server, this problem occurred. </p> <p>I have checked, htaccess is enabled. I'm also pasting my view, and controller. Please help me</p> <p><strong>VIEW</strong></p> <pre><code>&lt;form name="form1" method="post" action="index.php/search/make_url"&gt; &lt;div class="search_form"&gt; &lt;label for="shop"&gt;&lt;/label&gt; &lt;select name="category" id="select"&gt; &lt;option value="0"&gt;-- Shops / Webshops --&lt;/option&gt; &lt;?php $cats=load_categories(); foreach($cats as $cat){ ?&gt; &lt;option value="&lt;?php echo $cat-&gt;cat_name_en."---".$cat-&gt;catId;?&gt;"&gt;&lt;?php echo $cat-&gt;cat_name_en;?&gt;&lt;/option&gt; &lt;?php }?&gt; &lt;/select&gt; &lt;select name="product"&gt; &lt;option value="0"&gt;-- &lt;?php echo $this-&gt;lang-&gt;line("text_select_prod");?&gt; --&lt;/option&gt; &lt;?php $cats=load_products(); foreach($cats as $cat){ ?&gt; &lt;option value="&lt;?php echo $cat-&gt;p_name_en;?&gt;---&lt;?php echo $cat-&gt;pId;?&gt;"&gt;&lt;?php echo $cat-&gt;p_name_en;?&gt;&lt;/option&gt; &lt;?php }?&gt; &lt;/select&gt; &lt;label for="select2"&gt;&lt;/label&gt; &lt;select name="brand" id="brand"&gt; &lt;option value="0"&gt;-- &lt;?php echo $this-&gt;lang-&gt;line("text_select_chose_brand");?&gt; --&lt;/option&gt; &lt;?php $cats=load_brands(); foreach($cats as $cat){ ?&gt; &lt;option value="&lt;?php echo $cat-&gt;brand_name_en;?&gt;---&lt;?php echo $cat-&gt;brandId;?&gt;"&gt;&lt;?php echo $cat-&gt;brand_name_en;?&gt;&lt;/option&gt; &lt;?php }?&gt; &lt;/select&gt; &lt;label for="select3"&gt;&lt;/label&gt; &lt;select name="country" id="country" onchange="getCity(this.value);"&gt; &lt;option value="0"&gt;-- &lt;?php echo $this-&gt;lang-&gt;line("text_select_country");?&gt; ---&lt;/option&gt; &lt;?php $cats=load_country(); foreach($cats as $cat){ ?&gt; &lt;option value="&lt;?php echo $cat-&gt;cn_name;?&gt;---&lt;?php echo $cat-&gt;cnId;?&gt;"&gt;&lt;?php echo $cat-&gt;cn_name;?&gt;&lt;/option&gt; &lt;?php }?&gt; &lt;/select&gt; &lt;label for="select4"&gt;&lt;/label&gt; &lt;div id="cityBlock"&gt; &lt;select name="city" id="city"&gt; &lt;option value="0"&gt;-- &lt;?php echo $this-&gt;lang-&gt;line("text_select_city");?&gt; --&lt;/option&gt; &lt;/select&gt; &lt;/div&gt; &lt;input type="submit" name="btn" value="&lt;?php echo $this-&gt;lang-&gt;line("text_btn_submit");?&gt;"&gt; &lt;/div&gt; &lt;/form&gt; </code></pre> <p><strong>CONTROLLER</strong></p> <pre><code>public function make_url() { $url=$this-&gt;uri-&gt;assoc_to_uri($_POST); redirect(base_url()."index.php/search/for/". $url); } </code></pre> <p>Thanks in advance</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload