T
T
Turar Abu2016-04-06 21:31:37
HTML
Turar Abu, 2016-04-06 21:31:37

How to pass GET separated by commas without using JS?

Good day, dear forum users!
I need your help.
The page has a form with several <select>and <input>. It is necessary to make sure that when sending, they are indicated separated by commas.
Instead of:
site.ru/page?q=1&w=2&e=3
This:
site.ru/page?1,2,3
Are there ways to implement this without the help of JS? I would like to know your advice.
Thank you in advance!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Semenko, 2016-04-06
@kemply

What for? You can create arrays:

<select name="select[]"></select>
<select name="select[]"></select>
<input name="input[]">
<input name="input[]">

In this case, an array of select and input will be sent to the server.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question