Question: I have a form, with multiple select dropdowns. I named each one with a number.

**Problem**  

When i do foreach loop over the results i can get the selected values, but i **cant** get the key? They start with 0 not with 1 as they should.

**HTML:**

```
<select name="1">
    <option value="1">Admin</option>
    <option value="2">Moderator</option>
    <option value="3" selected="selected">User</option>
    <option value="4">More</option>
</select>

<select name="2">
    <option value="1" selected="selected">Admin</option>
    <option value="2">Moderator</option>
    <option value="3">User</option>
    <option value="4">More</option>
</select>

<select name="3">
    <option value="1" selected="selected">Admin</option>
    <option value="2">Moderator</option>
    <option value="3">User</option>
    <option value="4">More</option>
</select>

```

**Form submit (var\_dump):**

```
array(4) {
  [0]=>
  string(1) "3"
  [1]=>
  string(1) "1"
  [2]=>
  string(1) "1"
}

```

**PHP**

```
$arr = $form_array;
foreach( $form_array as $key => $value )
{
   echo "The key is: $key <br>";
   echo "The value is: $value <br>";
}

```

Answer: 
I think This `code` is help to you
Replace this instead of above code for `XML Parser`

```
if(localName.equals("url")){

            String source = atts.getValue(0);
            urls.add(source);
            info.setSRC(source);

        }

```

Hope this should work for you.
```
if(localName.equals("url")){

            String source = attributes.getValue("src");
            urls.add(source);
            info.setSRC(source);

        }

```

Hope this should work for you. There is no data attribute and you are getting data attribute.