<select name='sel' multiple>



Howzit guys.

Just want to know.

is it possible to do a multiple select in php.
I have seen it done in asp :(
but not yet in php

	<title>Multi Select Dropdown Box</title>
		<form method="POST" name="frm">
			<select size="5" name="sel" multiple>
				<option value='1'>1</option>
				<option value='2'>2</option>
				<option value='3'>3</option>
				<option value='4'>4</option>
				<option value='5'>5</option>
			<input type="submit" name="sub">

If i select say 1 and 3
only 3 will show.

how can i see 1 and 3 ?

Shot guys ;)
this looks so simple .... yet :shock:
Make it an array by putting "[]" at the end of the name, e.g. <select size="5" name="sel[]" multiple="multiple">. (That 'multiple="multiple"' is necessary if you want your code to validate, but doesn't matter to PHP.)
what abt this ::

echo '<input name="chk2[]" type="checkbox" value=$query_data[1]>';

while it goes to another pager I see the value of $query_data[1] as "Array" nothing else.