kusarigama
Technical User
Hi all,
is there a way to sort a HTML Drop down list array alphabetic ?
I tried the following, but it doesn't work !
Can anyone help me ?
Olli
<select name="position[]">
<option value="Artist"<?=$aa;?>>Artist</option>
<option value="Dancer"<?=$bb;?>>Dancer</option>
<option value="Webdes"<?=$cc;?>>Webdes</option>
<option value="Multim"<?=$dd;?>>Multim</option>
</select>
<?PHP
if($_POST['position'])
{
asort($POST['position'])
}
?>
is there a way to sort a HTML Drop down list array alphabetic ?
I tried the following, but it doesn't work !
Can anyone help me ?
Olli
<select name="position[]">
<option value="Artist"<?=$aa;?>>Artist</option>
<option value="Dancer"<?=$bb;?>>Dancer</option>
<option value="Webdes"<?=$cc;?>>Webdes</option>
<option value="Multim"<?=$dd;?>>Multim</option>
</select>
<?PHP
if($_POST['position'])
{
asort($POST['position'])
}
?>