What is the best practice for sending multiple selection queries on the search form?


I'm using Chosen Multiple Select on my search form.

Example :

What is the best practice to send & get query string with multiple select on my search form?

I'd imagine having the html as <input type="hidden" name="chosen[]" value="<!-- id or whatever you want to work with-->" />

If you can have it through that Chosen thingie, that is.

Then you can simply get an array on serverside:

$arr = $_POST['chosen'];


array(0 => 2,
      1 => 10,
      2 => 37)

Given result if you selected the ids 2, 10 and 37.