Jump to content
  • 0

Проблема с поиском Гугла на сайте


okunev2
 Share

Question

Разместил форму поиска и код на странице модуля моей CMS, чтобы

результаты поиска гула по сайту открывались на странице модуля, но увы

почему-то после нажатия снопки ПОИСК, перебрасывает на стартовую

страницу сайта и все!

Вот мой код:

echo "<div style=\"z-index: 70;\">";

echo "
<form action=\"http://www.mydomain.ru/modules.php?name=search\" id=
\"cse-search-box\">
<div>
<input type=\"hidden\" name=\"cx\" value=\"xxxxxxxxxxxxx\" />
<input type=\"hidden\" name=\"cof\" value=\"xxxxxx\" />
<input type=\"hidden\" name=\"ie\" value=\"windows-1251\" />
<input type=\"text\" name=\"q\" size=\"31\" />
<input type=\"submit\" name=\"sa\" value=
\"Поиск\" />
</div>
</form>
<script type=\"text/javascript\" src=\"http://www.google.com/coop/cse/
brand?form=cse-search-box&lang=ru\"></script>
";

echo "<br/><br/>";

echo "
<div id=\"cse-search-results\"></div>
<scripttype=\"text/javascript\">
var googleSearchIframeName = \"cse-search-results\";
var googleSearchFormName = \"cse-search-box\";
var googleSearchFrameWidth = 551;
var googleSearchDomain = \"www.google.ru\";
var googleSearchPath = \"/cse\";
</script>
<scripttype=\"text/javascript\" src=\"http://www.google.com/afsonline/
show_afs_search.js\"></script>
";

echo "</div>";

Подскажите, плиз, как решить эту проблему!?

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  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.

 Share

×
×
  • 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. See more about our Guidelines and Privacy Policy