need help creating a custome google search box

Discussion in 'HTML & Website Design' started by lucky6man, Oct 19, 2009.

  1. #1
    im trying to put a search box on a "find a scrap yard site". i would like it to be so the user can just input there zip code and then it will search google for scrap yards near them. can anyone help me with this.

    here is my google searchbox code


    <form action="http://www.google.com/cse" id="cse-search-box" target="_blank">
    <div>
    <input type="hidden" name="cx" value="partner-pub-xxxxxxxxxxxxx:afeym06eq0t" />
    <input type="hidden" name="ie" value="ISO-8859-1" />
    <input type="text" name="q" size="31" />
    <input type="submit" name="sa" value="Search" />
    </div>
    </form>
    <script type="text/javascript" src="http://www.google.com/cse/brand?form=cse-search-box&amp;lang=en"></script>

    i would like it so it brings users to a page like this one below(delete an h off http)

    hhttp://maps.google.com/maps?hl=en&rlz=1G1GGLQ_ENUS323&um=1&ie=UTF-8&q=scrap+recycling+near+55126&fb=1&gl=us&hq=scrap+recycling&hnear=55126&view=text&ei=_yfdSvaaCorAMOudifMN&sa=X&oi=local_group&ct=more-results&resnum=1&ved=0CCMQtQMwAA
     
    lucky6man, Oct 19, 2009 IP