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
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

On-site search engine

  • 21-02-2010 8:29pm
    #1
    Registered Users, Registered Users 2 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, Registered Users 2 Posts: 490 ✭✭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, Registered Users 2 Posts: 7,838 ✭✭✭Nulty


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

    - like for embedded youtube videos and images?


Advertisement