how to save value from drop menu by using php.
<select name = 'color'>
<option value='black'>Black</option>
<option value='gray'>Gray</option>
<option value='white'>White</option>
</select>
i am saving the value from text field by doing this. i am thinking if i can do some thing like this in drop down menu.
<input type="text" name="username"
value="<?php if(isset($_POST['username'])){echo htmlentities($_POST['username']);}?>" />