Hi, I'm trying to set up a custom google search where users can select from a dropdown the particular site they want to search within - I've got it working great using the google option:
<input type="hidden" name="as_sitesearch" value="http://www.duck.com">
where the value would only return results within the site duck.com site.
However I'd like to have this as a variable where the user can select from a dropdown which site and the value is taken from their option in this form - I've had a go below - it looks fine, but doesn't appear to work at all!
Can someone give me a pointer or two? I thought by using 'sections' as a value and then putting it in the dropdown would work, but it didn't (I was feeling optimistic!)
<form method="get" action="http://search.rbsgrp.net/search" id="googleSearch">
<input type="hidden" name="access" value="p">
<input type="hidden" name="output" value="xml_no_dtd">
<input type="hidden" name="site" value="default_collection">
<input type="hidden" name="ie" value="UTF-8">
<input type="hidden" name="client" value="default_frontend">
<input type="hidden" name="oe" value="UTF-8">
<input type="hidden"
name="proxystylesheet" value="default_frontend">
<input type="hidden" name="as_dt" value="i">
<input type="text" name="as_lq" size="50" value="sections">
<SELECT NAME="sections" size="1">
<OPTION value="http://www.home.com">Home server</OPTION>
<OPTION value="http://www.retail.com">Retail</OPTION>
</SELECT>
<input type="hidden" name="as_sitesearch" value="sections">
<input value="Go" type="submit" class="gobutton" />
<img src="images/searchedby_home.gif" alt="Powered by Google" />
</form>



Reply With Quote


Bookmarks