L
L
LP-DIMAN2016-01-22 11:06:13
Laravel
LP-DIMAN, 2016-01-22 11:06:13

How to pull the same GET parameters?

We got the following parameters: client=2&id_advert=4&id_advert=5. PHP takes only the last value of id_advert, i.e. 5. Is there any way to pull all the values ​​with the same parameters?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Stanislav Pochepko, 2016-01-22
@LP-DIMAN

<form>
<input name="id_advert[]">
<input name="id_advert[]">
<input name="id_advert[]">
</form>

You will receive an id_advert array with values

P
Puma Thailand, 2016-01-22
@opium

Parsing the url string yourself is easy

M
Melkij, 2016-01-22
@melkij

Is it impossible to replace with id_advert[]?
Rake from $_SERVER (emnip, QUERY_STRING) manually.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question