Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

On-site search engine

Options
  • 21-02-2010 9:29pm
    #1
    Registered Users Posts: 7,838 ✭✭✭


    Hey,

    I scanned the search engine for how to build a search engine on your own site, for your own site.

    I'm not trying to do it right now my self but I'm just wondering what's used to do it?

    I dont mean search a database, I just mean search html


Comments

  • Registered Users Posts: 489 ✭✭Pablod


    if your looking for something quick and easy,
    Use a Google search box by a form works very well
    It will search your site then return the results on a Google Search Results page

    Option 1.
    <form method="get" action="http://www.google.com/search">
    <input type="text"   name="q" size="31"
     maxlength="255" value="" />
    <input type="submit" value="Google Search" />
    <input type="radio"  name="sitesearch" value="" />
     The Web
    <input type="radio"  name="sitesearch"
     value="mysite.com" checked /> search my site<br />
    </form>
    

    Option 2.
    <form method="get" action="http://www.google.com/search">
    <div style="border:1px solid black;padding:4px;width:20em;">
    <table border="0" cellpadding="0">
    <tr><td>
    <input type="text"   name="q" size="25"
     maxlength="255" value="" />
    <input type="submit" value="Google Search" /></td></tr>
    <tr><td align="center" style="font-size:75%">
    <input type="checkbox"  name="sitesearch"
     value="mysite.com" checked /> only search mysite<br />
    </td></tr></table>
    </div>
    </form>
    


  • Registered Users Posts: 7,838 ✭✭✭Nulty


    Nice one pablo. Does that search <objects> and alt text?

    - like for embedded youtube videos and images?


Advertisement