Search engine questions

Sharky Forums


Results 1 to 5 of 5

Thread: Search engine questions

  1. #1
    Hammerhead Shark Adamp44's Avatar
    Join Date
    Nov 2000
    Location
    End of the Earth
    Posts
    1,382

    Search engine questions

    Hi. I'm making a website and I would like the visitors to be able to search the site or google at their choice. Do you know of a script which will allow this?
    The world is SQUARE!
    The NOC

  2. #2
    NullPointerException rock's Avatar
    Join Date
    Sep 2000
    Location
    York, PA
    Posts
    6,203
    Just do a View -> Source of the site you want to use. You'll just need to create a litte form with a text box and a Submit button.

    This is the code from www.google.com:
    Code:
    <form action="/search" name="f">
    <table cellspacing="0" cellpadding="0">
    <tr>
    <td width="75">&nbsp;</td>
    <td align="center"><input type="hidden" name="hl" value=
    "en"><input maxlength="256" size="35" name="q" value=""><br>
    <input type="submit" value="Google Search" name="btnG"><input
    type="submit" value="I'm Feeling Lucky" name="btnI"></td>
    <td valign="top" nowrap><font size="-2">&nbsp;•&nbsp;<a
    href="/advanced_search?hl=en">Advanced&nbsp;Search</a>
    <br>
    &nbsp;•&nbsp;<a href=
    "/preferences?hl=en">Preferences</a><br>
    &nbsp;•&nbsp;<a href="/language_tools?hl=en">Language
    Tools</a></font></td>
    </tr>
    </table>
    </form>

    Open Source is free like a puppy is free.

    It's only when you look at an ant through a magnifying glass on a sunny day that you realise how often they burst into flames.

    Understanding Evolution

  3. #3
    Hammerhead Shark Adamp44's Avatar
    Join Date
    Nov 2000
    Location
    End of the Earth
    Posts
    1,382
    Yeah, but how would they search my site?
    The world is SQUARE!
    The NOC

  4. #4
    Tiger Shark
    Join Date
    Feb 2001
    Location
    Satan Country
    Posts
    564
    Originally posted by Adamp44
    Yeah, but how would they search my site?
    You will have to program it specifically for your site using a DB and searching through html pages stored into the DB.

    There is no way to do it all in a script that I know of.
    I'm half Scottish and half French.

    I surrender to alcohol.

  5. #5
    Ursus Arctos Moderatis Grizzly's Avatar
    Join Date
    Sep 2000
    Location
    Providence, RI USA
    Posts
    3,077
    Yeah in order to search information you typically need it in a database of some sort. But if your web space supports Cold Fusion, you can create a "Verity collection" of your entire web space and make it searchable within minutes, no database required. Very cool stuff.

Posting Permissions

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