Hello.
I think, maybe it's better to use JavaScript in this case. For example, You need:
<form action="..." method=POST>
<select onClick="...">
<option value="1">First</option>
...
<option value="265">Last</option>
</select>
<input type=hidden name="hvalue">
</form>
On every mouse click, You must take selected value and add it to the "hvalue" with JavaScript. You may separate values with ";" (1;256).
Maybe it helps You