I have a form with multiple textboxes with the same names. I want to get the data from all the textboxes in my PHP code.

Here is my code.

```html
Email 1:<input name="email" type="text"/><br/>
Email 2:<input name="email" type="text"/><br/>
Email 3:<input name="email" type="text"/><br/>

```

```php
$email = $_POST['email'];
echo $email;

```

I wanted to have a result like this:

> 
> email1@email.com, email2@email.com, email3@email.com
> 
> 
> 

Instead I only get the text from the last textbox.