hello...
i want ot select multiple vakues from dropdown and insert into database. but it is not working. any one plz help.
and one thing when ever i retrive values from database selected values come in top of the dropdown and remaing values are come in bottom of the dropdown.
for suppose i am selcting 1,4 from dropdown then when retriving that values from database that will come like this.
1
4
select
2
3
5
below is my code
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>
<body>
<div style="border:1px #FFFFFF ridge; width:70px; height:70px; overflow-x: auto; overflow-y: auto;">
<select name='color[]' style="border:0px;" size=6 multiple>
<option value='' selected>Select Item</option>
<option value='1'>Blue</option>
<option value='2'>Green</option>
<option value='3'>Red</option>
<option value='4'>Yellow</option>
<option value='5'>White</option>
</select>
</div>
</body>
</html>