3
When I do a search via GET through a form the url looks like this:
test.com.br? search.php? q=Phrase%20what%20am%20searching
I’d like to keep it that way:
test.com.br? search.php? q=Phrase+what+am I+seeking
Anybody know how to do that? Reference: https://www.globo.com/search/? q=testing+search
Form code:
<form class="form-inline" action="busca.php" method="get" >
<div class="form-group" style="width:100%">
<label for="numero" class="control-label">Busca</label><br>
<input class="form-control" id="termo" name="termo" type="text" value="" style="width:100%">
</div>
<div class="form-group" style="width:100%">
<br>
<button type="submit" class="btn btn-primary" style="width:100%!important; padding:6px 12px;"><i class="fa fa-search" aria-hidden="true"></i> Pesquisar</button>
</div><!-- /form-group -->
</form>
Enter the form code. Note that %20 is correct for URL, and + for form.
– Bacco
It may simply be a
enctype"application/x-www-form-urlencoded"
missing– Bacco
I put the code
– Frederico Moreira