homepage Welcome to WebmasterWorld Guest from 54.167.179.48
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

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

5+ Year Member



 
Msg#: 3084079 posted 10:33 am on Sep 15, 2006 (gmt 0)

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]

 

rocknbil

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



 
Msg#: 3084079 posted 7:19 pm on Sep 15, 2006 (gmt 0)

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.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved