How to use the method="GET" without the action

0

I'm creating a search mini-system, the problem is that I want to use method="get" without using action="" and at the same time I can put css on the page without using action . I want to avoid using action for this reason:

www.meusite.com/index.html?q=sua+busca+aqui

being, what I want this URL :

www.meusite.com/Pesquisar?q=sua+busca+aqui

It's the main thing to put something inside get as design files, scripts and html, because when we run method="get" it needs a file to play it on the page. But my case is to get something inside get without action and leave url without the filename.

If it is not possible, how do I not make the filename appear in url , for example:

Document visible in the url:

www.meusite.com/index.html?q=sua+busca+aqui

I would like to leave only the "? p=" or "Search? p=" or "p="

www.meusite.com/Pesquisar?p=uma+pesquisa+idiota
    
asked by anonymous 04.02.2016 / 13:13

1 answer

0

Simply do not use action="" , use only <form method="get"> .

In this way you will be www.meusite.com/?p=uma+pesquisa , if you still want to have a more friendly url, you will need to use mod_rewrite.

    
04.02.2016 / 15:05