Answer the question
In order to leave comments, you need to log in
What is the easiest way to pass data from input to url?
Greetings
There is MODX, there are two fields and there is a Yandex search. Two fields per page:
<input type="text" name="" value="" placeholder="Поиск по сайту...">
<input type="button" name="" value="Найти">
httt://site.ru/?searchid=0000000&text=чтотоищу&web=0
hello
and hello
pass it to the url, it turns out: httt://site.ru/?searchid=0000000&text=hello&web=0
Answer the question
In order to leave comments, you need to log in
In the html code, the form is created according to this principle
<form action="куда направить скрипт" method="post или get">
<input type="text" name="" value="" placeholder="Поиск по сайту...">
<input type="button" name="" value="Найти">
</form>
<form method="get" action="httt://site.ru/">
<input type="text" name="searchid" value="0000000">
<input type="text" name="text" value="hello">
<input type="text" name="web" value="0">
<input type="submit" value="Отправить">
</form>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question