L
L
lynnikvadim2015-07-23 22:41:18
Laravel
lynnikvadim, 2015-07-23 22:41:18

How to get multiple select data in php?

I have a form with multiple select, when submitting data from the form, I only get the last value.
How can I get all values ​​selected in multiple select?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Evgeniy Odinets, 2015-07-23
@lynnikvadim

<select name="select[]" multiple="multiple">...</select>

$data = $_POST['select']

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question