Custom Google search bar

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ajd335
    New Member
    • Apr 2008
    • 123

    Custom Google search bar

    Hi..

    Actually I have Glossary pages in my website for all A to Z terms
    I have created one google custom search bar. The problem is , The google search engine always points the A page(in which all the terms start from A are included) rather than just pointing to the term itself..

    e.g -- I want to search for absorption than the search bar will show the pages with all the A terms

    -- I have created directory A to Z to store term's PHP pages..

    I have tried out all the possible things...put it on WEB MASTER too..
    can any one tell me which approach should i follow to avoid this..
  • TheServant
    Recognized Expert Top Contributor
    • Feb 2008
    • 1168

    #2
    Gonna have to see your code to understand it more. We are not going to make your code for you, that is too much work. however, we can correct your code, or suggest better ways to do that.

    Comment

    • ajd335
      New Member
      • Apr 2008
      • 123

      #3
      Hi..
      Hers the code from GOOgle..
      I have given the links of my glossary pages when i made that.[php]<!-- Google CSE Search Box Begins -->
      <form action = "http://www.google.com/cse" id="cse-seacrh-box">
      <input type="hidden" name="cx" value="01193588 5206064745261:1 pmme9d_2zw" />
      <input type="text" name="q" size="25" />
      <input type="submit" name="sa" value="Search" />
      </form>
      <script type="text/javascript" src="http://www.google.com/coop/cse/brand?form=cse-search-box&lang=en"></script>

      <!-- google code ends -->

      /// above code in the page where i have put my search bar

      <!-- gOogle Search Result Snippet Begins -->
      <div id="cse-search-results"></div>
      <script type="text/javascript">
      var googleSearchIfr ameName = "cse-search-results";
      var googleSearchFor mName = "cse-search-box";
      var googleSearchFra meWidth = 600;
      var googleSearchDom ain = "www.google.com ";
      var googleSearchPat h = "/cse";
      </script>
      <script type="text/javascript" src="http://www.google.com/afsonline/show_afs_search .js"></script>

      <!-- Google Search Result Snippet Ends -->[/php]
      /// above code is in the page where i wanted my results to be appear
      Last edited by ronverdonk; Apr 16 '08, 10:55 PM. Reason: warning: use code tags!

      Comment

      • ronverdonk
        Recognized Expert Specialist
        • Jul 2006
        • 4259

        #4
        WARNING:
        Please enclose your posted code in [code] tags (See How to Ask a Question).

        This makes it easier for our Experts to read and understand it. Failing to do so creates extra work for the moderators, thus wasting resources, otherwise available to answer the members' questions.

        Please use [code] tags in future.

        MODERATOR

        Comment

        • ajd335
          New Member
          • Apr 2008
          • 123

          #5
          Originally posted by ronverdonk
          WARNING:
          Please enclose your posted code in [code] tags (See How to Ask a Question).

          This makes it easier for our Experts to read and understand it. Failing to do so creates extra work for the moderators, thus wasting resources, otherwise available to answer the members' questions.

          Please use [code] tags in future.

          MODERATOR
          Oh! my mistake..M new to that so...I'll keep that in mind..

          Comment

          • ronverdonk
            Recognized Expert Specialist
            • Jul 2006
            • 4259

            #6
            I don't understand this. What has this problem to do with PHP? All I see is HTML and JavaScript code! So what is this doing in the PHP forum?

            Ronald

            Comment

            Working...