form input search route
There is a form
<form method="post" name="do" action="" class="search-area">
<input type="submit" value="Поиск">
<input type="text" name="search" placeholder="Введите текст для поиска...">
<div class="clearfix"></div>
</form>
How to send a user to the address after entering and clicking http://localhost/index.php/main/search?search=слово Where the word is the variable $search
1
1 answers
If you mean how to get a request to the page http://localhost/index.php/main/search?search=слово
when sending the form, then your html with edits will be like this
<form method="get" name="do" action="/index.php/main/search" class="search-area">
<input type="submit" value="Поиск">
<input type="text" name="search" placeholder="Введите текст для поиска...">
<div class="clearfix"></div>
</form>
1
Author: korytoff, 2015-09-15 13:27:18