# Multiple values with php using list/menu

**URL:** <https://forum.kirupa.com/t/multiple-values-with-php-using-list-menu/195102>\
**Category:** Uncategorized\
**Created:** [July 28, 2006, 12:47pm UTC](https://forum.kirupa.com/t/multiple-values-with-php-using-list-menu/195102 "2006-07-28T12:47:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tanel96](https://avatars.discourse-cdn.com/v4/letter/t/5fc32e/32.png) [@tanel96](https://forum.kirupa.com/u/tanel96)\
**Post date:** [July 28, 2006, 12:47pm UTC](https://forum.kirupa.com/t/multiple-values-with-php-using-list-menu/195102/1 "2006-07-28T12:47:20Z")

</div>

[LEFT]I’m using a list/menu item so that one can select multiple values:[/LEFT]

```auto

<select name="select" size="5" multiple>
<option value="1">first</option>
<option value="2">second</option>
<option value="3">third</option>
</select>

```

[LEFT]now the question is… how do i get the values to php ? for example, at the moment i’m using the following code:[/LEFT]

```php

[left]<?php
if ($submit){
 echo $select;
}
?>
[/left]

```

[LEFT]but that only gives me one value, but i might have chosen all three ![/LEFT]
