Create link with data of a form [duplicate]

2

I have an external search site ready where search results generate a link similar to this: http://example.com/pesquisa?utf8=✓&search=itempesquisado&x=0&y=0 .

I would like to create a form on my website that would take to this external link, that is, when the user type itempesquisado in the field and click send should be directed to the page: http://example.com/pesquisa?utf8=✓&search=itempesquisado&x=0&y=0 .

    
asked by anonymous 26.09.2014 / 22:48

1 answer

2

Try this HTML code:

<html>
<body>
    <form method="get" action="http://endereco.com.br/pesquisa" enctype="application/x-www-form-urlencoded">
        <input type="hidden" name="utf8" value="✓">
        <input type="text" name="search" value="itempesquisado">
        <input type="hidden" name="x" value="0">
        <input type="hidden" name="y" value="0">
        <input type="submit" value="Pesquisar">
    </form>
<body>
</html>
  • You may have difficulty transmitting / receiving this symbol ✓ (% E2% 9C% 93), if you can change it, it will make it easier.
26.09.2014 / 23:38