I would like to make use of a database or script on some other page.
For example say, you wish to make it possible for a user on your site to submit a word in a form afther wich my script will acces the google page, somehow submit the word out of the form on my page to the google page. Then get the result of the google query on my page to display like 10 urls.
I think I have to make use of curl for this, but I am completly new to this and I cant find a tutorial on the web wich explains me how to do it.
So far I was able to make a connection to someone website and get the site on my screen. So I did got data by connecting to the site, I want to be able to be in control of a form on that page. This is the code I did use, and now I am stucked so begging for help now :p
<?php
$ch = curl_init();
// Username and password, always separated by a colon after the protocol, with an amphersand
$c=curl_setopt($ch, CURLOPT_URL, 'http://@www.google.com');
$result=curl_exec($h);
echo $result;
?>
Can anyone explain me how I submit data to a form on the google page. and how I then afther google results the outcome get that info in some sort of string so I can use the data to display on my site again?
by the way: I will not be using the google bot for real, its just a example of what I want to do.
Hope anyone can help me, greetings walter123.