A
A
Abc Edc2015-08-05 10:32:00
Laravel
Abc Edc, 2015-08-05 10:32:00

How to color url when form method is GET and parameters are array?

That is, I have a form with a checkbox that filters the data on the page and sends a get request to the server with these filters, and the url turns out to be %C and so with each filter dirtier and dirtier
ps All this is in Laravel (mb there is some kind of solution)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
maximw, 2015-08-05
@gleber1

I would suggest separating with signs - and _, they are not converted to% XX
There are several options. For example.
1) Set a fixed order of parameters and simply separate them with one of the symbols
/controller/action/red_big_square
2) Separate the parameters between themselves and the parameter name with different symbols
/controller/action/color-red_size-big_shape-square
Parsing this in the action is not difficult.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question