0
I wanted to make a search system where I would search data typed according to the selected category, but I do not know where to start.
I’d like to add the option of filter for category followed by a _<input type="text">_
for the user to select the category and write what he wants to search for :
<select name="opcao_filtro">
<option value="nulo">--</option>
<option value="titulo">Título</option>
<option value="autor">Autor</option>
<option value="tema">Tema</option>
<option value="editora">Editora</option>
<option value="indice">Índice</option>
</select>
Just below would have the input:
<input type="text" name="busca" id="busca">
<input type="submit" value="Procurar">
And then (optional for the user) search for letters (would work together with the category filter):
<a href="url">A</a>
<a href="url">B</a>
Example: Useario chose to filter by title and when he clicks on the letter " To " searched between the category and displayed the results of the titles that started with the selected letter.