Welcome Guest, Not a member yet? Register   Sign In
GET Method, Query string with Clean url
#1

[eluser]TheIgniter[/eluser]
Hi there,

I have a litle problem and i hope that someone will help me :

Suppose we have a function taht can filter data with 2 parameter .. I want to send some value to this function with the get method .. so i have :
Code:
<form method="get" action="<?php echo base_url() . 'mycontroller/myfunction/filter_by/'?>">
<select id="filter">
  <option value="">Selectionnez votre rĂ©gion </option>
  <option value="pays1">france</option>
  <option value="pays2">canada</option>
</select>
&lt;input  type="submit"/&gt; &lt;/form&gt;

When i submit, the url become :

Code:
mysite.com/mycontroller/myfunction/filter_by/?pays1=france&pays2=canada

So my question is how can i get this :
Code:
mysite.com/mycontroller/myfunction/filter_by/france/canada

I did some search but not enougth to undertund how to..
THanks in advance!!


Messages In This Thread
GET Method, Query string with Clean url - by El Forum - 08-31-2010, 05:07 PM
GET Method, Query string with Clean url - by El Forum - 08-31-2010, 07:04 PM
GET Method, Query string with Clean url - by El Forum - 08-31-2010, 09:56 PM
GET Method, Query string with Clean url - by El Forum - 08-31-2010, 10:58 PM



Theme © iAndrew 2016 - Forum software by © MyBB