I have using the following code for my dropdown

```
<select class="form-control" name="device" id="device" onChange="getBrand(this.value);">
<option selected name="device" id="device" value="<?php echo $row['id'] ?>"><?php echo $row['name']; ?></option>
</select>

```

for form submit, i have used this code

```
if(isset($_POST['submit'])){
    extract($_POST);
    $device = $_POST['device'];
}

```

I want to get selected value in button submit, currently I got the id instead of value.

Thanks in advance.