Jump to content

Recommended Posts

I have problem with google search box for share sites.it very unique and show all files.http://electronics-searcher.info/musicvideo/

I like open search results in second frame on my site.But i can put full stop.Results open first on second frame then on google.php.when i delete google.php in form i don`t get results.Second frame works normal and open ad from hosting server in second frame on my site.And code look like this:

1.index.php

 

<iframe src="content.php" name="content" width="800" align="top" scrolling="auto"></iframe>

 

<iframe src="google.php" name="google" width="800" height="900" align="middle" scrolling="auto"></iframe>

 

2.content.php

 

<form action="http://electronics-searcher.info/musicvideo/google.php" name="cse-search-box" target="google" id="cse-search-box">

  <div>

    <input type="hidden" name="cx" value="partner-pub-0223885233567584:yxpg9puiqxa" />

    <input type="hidden" name="cof" value="FORID:10" />

    <input type="hidden" name="ie" value="ISO-8859-1" />

    <input type="text" name="q" size="31" />

    <input type="submit" name="sa" value="Search" />

  </div>

</form>

<script type="text/javascript" src="http://www.google.com/coop/cse/brand?form=cse-search-box&lang=en"></script>

 

3.google.php

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>Untitled Document</title>

</head>

 

 

<div id="cse-search-results"></div>

<script type="text/javascript">

  var googleSearchIframeName = "cse-search-results";

  var googleSearchFormName = "cse-search-box";

  var googleSearchFrameWidth = 800;

  var googleSearchDomain = "www.google.com";

  var googleSearchPath = "/cse";

</script>

<script type="text/javascript" src="http://www.google.com/afsonline/show_afs_search.js"></script

></body>

</html>

can anybody help me?

Link to comment
https://forums.phpfreaks.com/topic/137364-searchbox-in-frames/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.