D
D
Danil2016-05-30 09:45:14
JavaScript
Danil, 2016-05-30 09:45:14

How to organize a search on the site?

There is a site, on it a search of the form:

http://127.0.0.1/search/query?id=1;type=items;role=user;

How can I extract the values ​​from this line id, type, role?
That is, for example, I need a mechanism that will give me everything that comes from id=and to;

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Yarkov, 2016-05-30
@Veneomin

On an express server? And what are those strange separators ";"? Should be "&", then there will be search parameters in req.query to lie.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question