I want to make a site: search bar

Discussion in 'PHP' started by Digimas, Aug 12, 2009.

  1. #1
    Hello, I wanted to create a website where there was a search bar where users would enter their search term, however their search is only executed for a certain website, than displays the results. I also wanted to create a drop down that allowed the user to pick which sites to search.

    Let me know how long it would take you to create something like this, thanks.

    For example:

    The search bar is set up for: site:www.youtube.com "USERS SEARCH TERM ENTERED HERE"

    However the user doesn't see the "site:www.youtube.com" part, they only choose "youtube" from a drop down menu.

    After they search they are show results below, much like google
     
    Digimas, Aug 12, 2009 IP
  2. alons

    alons Peon

    Messages:
    35
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Why dont you use Googles Search bar.
    It will help to earn some money as well
     
    alons, Aug 13, 2009 IP
  3. astrazone

    astrazone Member

    Messages:
    358
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    33
    #3
    its possible to generate a search from your website but getting all the results is hard.
    as the guy above me said use a costume google search bar.
    and look only for youtube.com results.
     
    astrazone, Aug 13, 2009 IP
  4. Digimas

    Digimas Peon

    Messages:
    72
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Ok, I made a custom google search and added it to my website but when the user searches I don't want them to leave the page. Is there a way to have to the search results displayed below the search bar on the same page?
     
    Digimas, Aug 13, 2009 IP
  5. elitasson

    elitasson Member

    Messages:
    49
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    48
    #5
    Look at the search function here at DP and try to make something similar.
     
    elitasson, Aug 13, 2009 IP