1
I have made the following block that is a replacement for the site search block - but it has 2 radio buttons, 1. Google 2. XOOPS site - so you can search google or the site with the click of one radio button - BUT i need to know if it is possible to pass parrameters to the search.php? url - like you can with google etc to make it work, or maybe some one could give me some pointers with ym script?
If i check the xoop-search (gauntlet i named it here) then i return a blank page, google works fine.
So my question is if using
http://www.thegauntlet.org/search.phpHow do i pass the search query to the url? like you can do with google eg
http://www.google.com/search?hl=en&q=xoopshow would i achieve the same thing with XOOPS search? Or is there something i can add to my current form (below) to achieve this?
<form method="get" name="SearchForm"onSubmit="return fetch()">
<div align="left">div>
<table border=0 cellpadding=0 cellspacing=0>
<tr>
<td colspan="2"><div align="left"><font face="Georgia, Times New Roman, Times, serif"><b>b>font>div>td>
tr>
<tr>
<td colspan="2"><div align="left"><font size=2 face=Arial><strong> strong>font>div>
<div align="left"><font size=2 face=Arial><strong><font color="#004040" size="2" face="Arial">
<input type="text" size=20 maxlength=200 name="query">
font> strong>font>div>td>
tr>
<tr>
<td><font size=2 face=Arial><strong>
<input type="radio" checked name="SITE" value="Google" onClick="setsite('Google')">
Googlestrong>font>td>
<td><font size=2 face=Arial><strong>
<input type="radio" name="SITE" value="Gauntlet" onClick="setsite('Gauntlet')">
Gauntletstrong>font>td>
tr>
<tr>
<td colspan="2"><div align="left"><strong><font size=2 face=Arial><strong><font color="#004040" size="2" face="Arial">
<input type="submit" name="BtnSearch" value="Search">
font><font size=2 face=Arial><strong><font size=2 face=Arial><strong><font color="#004040" size="2" face="Arial">
<input type="hidden" name="hl" value="en">
<input type="hidden" name="action" value="results">
font>strong>font>strong>font><font color="#004040" size="2" face="Arial">
font>strong>font><font color="#004040" size="2" face="Arial">
font>strong>div>td>
tr>
<tr>
<td><div align="left"><strong><font size=2 face=Arial><strong><font color="#004040" size="2" face="Arial">
font><font size=2 face=Arial><strong><font color="#004040" size="2" face="Arial">
font>strong>font><font color="#004040" size="2" face="Arial">
font>strong>font><font color="#004040" size="2" face="Arial">
font>strong>div>td>
<td> td>
tr>
<tr>
<td width=93><div align="left"><font size=2 face=Arial><strong><font color="#004040" size="2" face="Arial">
font> strong>font>div>td>
<td width=87><div align="left"><font size=2 face=Arial><strong><font color="#004040" size="2" face="Arial">
font> strong>font>div>td>
tr>
table>
<blockquote>
<div align="left"><strong><font color="#004040" size="2" face="Arial"> <br>
font>strong>div>
blockquote>
form><script language="JavaScript">
body>