Search forms

Asked

Viewed 56 times

0

Is there any way to send data from a field of my html form for example I have an html page with a simple form Author’s name field and another book title field and a search button, I would like that when I typed in the Name field and clicked on search this typed data was directed to Google page for example and did the search as if I had typed in the Google page that term and clicked on search

1 answer

0


Just create a form with the action for https://google.com/search as the method GET and name their field of search as q.

<form action="https://google.com/search" method="GET">
  <input type="text" name="q" />
  <button type="submit">Pesquisar</button>
</form>

inserir a descrição da imagem aqui

  • Hello Leandro Angelo, thank you very much for your detailed answer, that’s exactly what I wanted, but I would like to do it on this page of a library: http://www.biblioteca.pucpr.br/pergamum/biblioteca/index.php?_ga=2.15085749.209816061.1540919329-1079188922.1499789354 &#Xa Att Adriano

  • @adrianoeurich In this case it is a completely different question from the one that was posted. And in the specific case it would be more interesting for you to contact Pucpr and check if they provide some service or api to research your collection.

  • Got it, okay, thanks a lot for the attention and the answers!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.