Welcome to WebmasterWorld Guest from 54.145.208.64

Forum Moderators: incrediBILL

Message Too Old, No Replies

form, which will send data from google

form, which will send data from google and shows results in frame

   
10:33 am on Sep 15, 2006 (gmt 0)

5+ Year Member



Witam,

I am going to create form, which will send data from google

This is that script:

<html>
<head>
<meta content="text/html; charset=ISO-8859-2"
http-equiv="content-type">
<title>form</title>
</head>
<body>
<br>
<form method="get" target="_blank"
action="http://www.google.com/search">
<p><font face="Arial"> <input name="q"
size="12" type="text">&nbsp;&nbsp;
<select name="q" size="1">

<option selected="selected" value="site:example-1.pl">site:example-1.pl
</option>
<option value="site:example-2.info">site:example-2.info </option>
<option value="site:example-3.info">site:example-3.info</option>
<option value="site:example-4.org">site:example-4.org</option>

<option value="example-1.pl">example-1.pl</option>
<option value="example-2.info">example-2.info</option>

<option value="example-3.info">example-3.info</option>
<option value="example-4.org">example-4.org</option>
</select>
&nbsp; <input value="Find" style="font-weight: bold;"
type="submit"> &nbsp; <input value="Reset"
name="B2" type="reset"> </font>
</p>
</form>
</body>

</html>

The problem that is that I would like to create frame and have the form in one of framaset and the results in another. Could you help me to create such form. Mabye somebody has the script, which does the same as I want to achieve. Maybe something in php, which sends results to database?

Thank you in advance for help!

[edited by: tedster at 6:46 pm (utc) on Sep. 15, 2006]
[edit reason] Replace real URLs with 'example' [/edit]

7:19 pm on Sep 15, 2006 (gmt 0)

WebmasterWorld Senior Member rocknbil is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Try this:

<form method="get" target="your_named_frame" action="http://www.google.com/search">

........

<frameset>
<frame src="searchform.html" name="search_form">
<frame src="framecontent.html" name="your_named_frame">
</frameset>

You might want to read up on Google's TOS about using Google search on your site, I can't recall if framing results is allowed or not. They will probably have a "framebuster" script in place if it's not.