Is this possible?

Discussion in 'Programming' started by yousellstuff1, Jan 22, 2009.

  1. #1
    I am coming up with a new type of website and i am trying to figure out of this is possible. If it is, would it be hard to make and hard to run?

    My question: Is there a way so that people can write a word and click enter and it will automatically be searched on google.

    Like, they type in golf and it will go straight to the search page.

    If i am not making sense just let me know
     
    yousellstuff1, Jan 22, 2009 IP
  2. phper

    phper Active Member

    Messages:
    247
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    60
    #2
    It's very simple actually.

    <form action="http://www.google.com/search" method="get">
    <input type="text" name="q" />
    <input type="submit" value="Search on Google" />
    </form>
    
    HTML:
    Done.
     
    phper, Jan 22, 2009 IP
  3. yousellstuff1

    yousellstuff1 Active Member

    Messages:
    1,195
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    75
    #3
    thanks for that, this should work just great for what i am trying, it think, if i have another question i will ask
     
    yousellstuff1, Jan 22, 2009 IP
  4. pingu2k4

    pingu2k4 Peon

    Messages:
    61
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    or you could use the google search box available from adsense if you have adsense acocunt...? assuming you do as your here...
     
    pingu2k4, Jan 23, 2009 IP
  5. devsn

    devsn Active Member

    Messages:
    156
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    70
    #5
    you could also consider using these if you want:
    http://www.google.com/coop/cse/
    Code (markup):
    If you do not have an adsense account..
     
    devsn, Jan 23, 2009 IP