Results 1 to 4 of 4

Thread: search

  1. #1
    Join Date
    Jul 2005
    Location
    Kuwait-I'm American
    Posts
    127
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default search

    does anyone around here know how to make a search engine? I don't get how you make a text box and the text input is searched for throughout your website...
    //\\ //\\// || //\\//\\ //\\ ||_
    SOFTWARE

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    You can use a server-side tool (grep -ir), or you can use a seperate search engine, like so:
    HTML Code:
    <form method="get" action="www.google.com/custom">
    <input type="text" name="q"/>
    <input type="hidden" name="sitesearch" value="www.mysite.com"/>
    <input type="hidden" name="domains" value="www.mysite.com"/>
    <input type="submit" value="Search!"/>
    </form>
    This is what a lot of sites do, including php.net and the W3C.
    As you may have noticed, Google provide a "custom search" page. You can also use a hidden input named "cof" to select certain options about the style of the search page, such as a custom icon to display and the colour scheme. I've yet to figure out what all the options do (in the form of option:value;option:value;) as they all have obscure names like "L" and "T".
    See http://www.google.com/custom?q=gfgg&...ins=www.w3.org for an example. Experiment.

    /edit: Have a butcher's at http://www.google.com/faq_freewebsearch.html.
    Last edited by Twey; 07-17-2005 at 08:59 AM.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends franšais | entiendo espa˝ol | t˘i Ýt hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  3. #3
    Join Date
    Jul 2005
    Location
    Kuwait-I'm American
    Posts
    127
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    thanks. I had a "butcher's hook "
    //\\ //\\// || //\\//\\ //\\ ||_
    SOFTWARE

  4. #4
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Heh - I was wondering if any of y'all Americans out there would get it
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends franšais | entiendo espa˝ol | t˘i Ýt hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •