How to route my current url to my desired url
<p>could anybody help me out what i am trying to get..</p>

<p>currently my url is something like this..</p>

<pre><code> http://localhost/finalifscnew/index.php?bank=AXIS%20BANK&amp;state=MAHARASHTRA&amp;district=GREATER%20BOMBAY&amp;branch=KALAMBOLI
</code></pre>

<p>what i want to make it like ..</p>

<pre><code> http://localhost/finalifscnew/index.php/AXIS-BANK/MAHARASHTRA/GREATER-BOMBAY/KALAMBOLI
</code></pre>

<p>javascript i am using is..</p>

<pre><code>function reload(form)
{
var val=form.bank.options[form.bank.options.selectedIndex].value;
self.location='index.php?bank=' + val ;

}
function reload3(form)
{
var val=form.bank.options[form.bank.options.selectedIndex].value;
var val2=form.state.options[form.state.options.selectedIndex].value;

self.location='index.php?bank=' + val + '&amp;state=' + val2 ;
}
function reload4(form)
{

var val=form.bank.options[form.bank.options.selectedIndex].value;
var val2=form.state.options[form.state.options.selectedIndex].value;
var val3=form.district.options[form.district.options.selectedIndex].value;

self.location='index.php?bank=' + val + '&amp;state=' + val2 + '&amp;district=' + val3 ;
}

function reload5(form)
{

var val=form.bank.options[form.bank.options.selectedIndex].value;
var val2=form.state.options[form.state.options.selectedIndex].value;
var val3=form.district.options[form.district.options.selectedIndex].value;
var val4=form.branch.options[form.branch.options.selectedIndex].value;
self.location='index.php?bank=' + val + '&amp;state=' + val2 + '&amp;district=' + val3 +      '&amp;branch=' + val4 ;
}
</code></pre>

<p>in php i am using dynamic chain dropdown list the dropdown data is being populated from the database.i am using 4 dropdown box each of them is dependend on another.on every dropdown item select i am using -onchange=\"reload(this.form)</p>

<p>is there any way to achieve this through javascript..as the self.location is responsible for changing the url i guess..</p>

<p>i also tried with mod_rewrite but its not working in localhost..</p>

<p>any solution for this would be highly appreciated..</p>
