1
pete0
Search Block - Customized - need a litle help
  • 2003/10/29 11:52

  • pete0

  • Just popping in

  • Posts: 2

  • Since: 2003/10/24


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.php

How do i pass the search query to the url? like you can do with google eg

http://www.google.com/search?hl=en&q=xoops

how 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><strongstrong>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">
          fontstrong>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>&nbsp;td>
    tr>
    <
tr
      <
td width=93><div align="left"><font size=2 face=Arial><strong><font color="#004040" size="2" face="Arial"
          fontstrong>font>div>td>
      <
td width=87><div align="left"><font size=2 face=Arial><strong><font color="#004040" size="2" face="Arial"
          fontstrong>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>

Login

Who's Online

219 user(s) are online (79 user(s) are browsing Support Forums)


Members: 0


Guests: 219


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits