hi
i wrote a code to select multiple items in a drop down list.And i store all the items in my database.But in that i select multiple items and submit that items last item only stored.Please tell that what's the mistake in my code.
[php]
<td><select name="imagelist " id="imagelist" multiple="multi ple">
<?
while($row=mysq l_fetch_array($ result))
{
$i=1;
$urlname=$row['urlname'];
?>
<option value="<?=$urln ame?>"><?=$ext= strrchr($urlnam e,'/');?></option>
<?
}
?>
</select>
[/php]
And i store these items in a database with a name $_POST['imagelist'].
Anybody plz tell that whats the mistake in my code.plz help me.
i wrote a code to select multiple items in a drop down list.And i store all the items in my database.But in that i select multiple items and submit that items last item only stored.Please tell that what's the mistake in my code.
[php]
<td><select name="imagelist " id="imagelist" multiple="multi ple">
<?
while($row=mysq l_fetch_array($ result))
{
$i=1;
$urlname=$row['urlname'];
?>
<option value="<?=$urln ame?>"><?=$ext= strrchr($urlnam e,'/');?></option>
<?
}
?>
</select>
[/php]
And i store these items in a database with a name $_POST['imagelist'].
Anybody plz tell that whats the mistake in my code.plz help me.
Comment