N
N
Nicol212018-03-23 18:03:10
PHP
Nicol21, 2018-03-23 18:03:10

How to add parameter to url?

There is a page
site.ru/page
It is necessary that it displays data that is on the page
site.ru/page/?ts_dosearch=1&s_j_date_from=03/24/2018&s_j_date_to=04/02/2018&s_nights_from=6&s_nights_to=14&s_adults=2&s_meal=0&s_stars=1&s_rating=0&s_fly=4&s_country=4 26

How to do it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton fon Faust, 2018-03-24
@bubandos

It all depends where you want to implement it...
if in js, then you make a request and insert the received information, for example, using innerHTML.
If in php - add the parameters in the php script and output.
Or, in nginx/apache, you can configure setting parameters - nginx docks and mod_rewrite to help.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question