Code for the main search form
<form action="redirect_search.asp" method=get target="_blank">
<table border="0" cellpadding="0" cellspacing="0" bgcolor="black" align=center width="100%">
<tr>
<td align="middle" bgcolor="white">
<div align="center">
<input type="hidden" name="lpv" value="1">
<input type="hidden" name="loc" value="lycosinc">
<font size=-1><b>Search the web:</b></font>
<input type="text" name="query" size=30>
<input type="hidden" name="num" value="30">
<SELECT name="option">
<OPTION value="lycos">Lycos</option>
<OPTION value="insidewaco">InsideWaco</option>
</select>
<input type="submit" value="Go Get It" border=0>
</div>
</td>
</tr>
</table>
</form>
Now create file called redirect_search.asp. This file should have this
<%
if Request("option") = "lycos" then
Response.redirect "http://www.lycos.com/srch/?query=" & Server.HTMLEncode(Request("query")) & "&lpv=1&loc=lycosinc"
else
Response.redirect "http://galileandesigns.com/forum/links_search.asp?search=" & Server.HTMLEncode(Request("query")) & "&num=" & Request("num")
end if
%>
This do the trick. I removed the option to specify the number of results as it is useless for lycos. If you want it back, just change the hidden num for a radio.
Marino