hi i have a form that uses an option list and when it is submitted it creates the URL that is to be searched on the only problem is that the url comes out wrong when the option with all the values is selcted, with the following example..
option one,two and three is the one i want to get working...
it should be
http://www.example.co.uk/example.html?type[]=one&type[]=two&type[]=three
but comes out as
http://www.example.co.uk/example.html?type%5B%5D%3D=one%26type%5B%5D%3Dtwo%26type%5B%5D%3D%26type%5B%5D%3Dthree
a single search works fine and gets the results.
http://www.example.co.uk/example.html?type%5B%5D=one
i have found that the problem is with the & and that it always ends up as %26
and this one works.
http://www.example.co.uk/example.html?type%5B%5D%3D=one&type%5B%5D%3Dtwo&type%5B%5D%3D&type%5B%5D%3Dthree
<form action="http://www.example.co.uk/example.html" method="get" name="example" >
<select name="type[]" ENCTYPE="enc-type">
<option value ="">View All Types</option>
<option value ="one">one</option>
<option value ="two">two</option>
<option value ="three">three</option>
<option value ="one&type[]=two&type[]=three">one,two and three</option>
</select>
<input type="submit" value="Search Properties!">
</form>
any ideas?
thanks