Good evening,
I'm doing a search and I'm having a problem passing the value that is written in input
to another page where the result will be displayed.
Url example I'm trying to pass the values
http://exemplo.com/locais/pesquisa?q=bares
.htaccess file
RewriteRule ^locais/([a-zA-Z-0-9-_]+)$ index.php?controller=pesquisa?q=$1
But the search name always returns me and not what I typed in input
Form
<form method="post" id="pesquisa_home" name="pesquisa_home" action="locais/pesquisa/<?= $_POST['valor_pesquisa'] ?>" >
<div style="margin-left:150px;">
<div style="float:left; width:500px;"><input id="valor_pesquisa" name="valor_pesquisa" type="text" placeholder="Restaurantes, bares, hotéis..." /></div>
<div style="float:left; margin-left:5px;"><input type="submit" value="Pesquisar" /></div>
</div>
</form>