Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

majacirkova's avatar

How to make php form for getting information from google

Hello , I want to make php form with two inputs, for example when i put some word in the first input and in the second i want to get information for that word from google, here i can explain more explicitly , for example when i make input of 2 words, exmaple: 'Toronto', 'Skopje' i want to check that result on Google. The result i want to get directly from Google page (i get this: 342 000 results(0.56 seconds)) So i want to store that result 342 000 results(0.56 seconds) in my database table ? How can i do that ?

0 likes
5 replies
jlrdw's avatar

See if there is a Google API for this sort of thing, also are you sure you want to store that large of a result?

majacirkova's avatar

Thanks @jlrdw ,yeah i want to store . Can you give me example how to use Google API ?

majacirkova's avatar

Thanks @phpMick , i implement form it is working , now can you tell me how to get this result from searching : 342 000 results(0.56 seconds) ?

Please or to participate in this conversation.