472,331 Members | 1,779 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,331 software developers and data experts.

asp with radio buttons on forms

Hello all...

I have a page that will be performing a search. The search consists of 3
radio button options. The first 2 will search the entire web through google
and the site as indexed by google. The 3rd option I want to search the site
using MS-Index Server. I can get them to run individually but I'm not sure
how to set the parameters and test for the 3rd radio button (index server)
selected on the page.

I thought that, for example, my Searchinc.asp could have an
If...then...else:

<form action="../gw/incl.idq" method="GET">
<td valign="bottom" align="right" width="100%">
<input type="HIDDEN" name="CiScope" value="/geo_portal/gw">
<input type="HIDDEN" name="CiMaxRecordsPerPage" value="10">
<input type="HIDDEN" name="TemplateName" value="incl">
<input type="HIDDEN" name="CiSort" value="rank[d]">
<input type="HIDDEN" name="HTMLQueryForm" value="../gw/incl.asp">
</td>
<td width="1">
</form>
<%else%>
<!-- SiteSearch Google -->
<form method="get" action="http://www.google.com/custom"
target="google_window">
<%end if%>
<table width="770" height="32" border="0" align="center" cellpadding="0"
cellspacing="0" bgcolor="#FFFFFF">
<tr class="geoTopLinks"><td width="99" height="32" align="left"
valign="top" nowrap="nowrap">
<a href="http://www.google.com/">
<img SRC="http://www.google.com/logos/Logo_25wht.gif" alt="Google"
height="32" border="0"></img></a>
</td>
<td nowrap>
<input type="hidden" name="domains" value="www.site.com"></input>
<input type="text" name="q" size="15" maxlength="255" value=""></input>
<input type="submit" name="sa" value="Search">
</input> </td>
<td width="342" height="32" nowrap><font size="-1" color="#000000">
<input type="radio" name="sitesearch" value="">
<span class="Verd10pt">Web
<input type="radio" name="sitesearch" value="sitename">
GeoPlace
<input type="radio" name="sitesearch" value="geoworld" checked>
GeoWorld
</span></font><br>
<input type="hidden" name="client" value="pub">
</input>
<input type="hidden" name="forid" value="1">
</input>
<input type="hidden" name="channel" value="a number">
</input>
<input type="hidden" name="ie" value="ISO-8859-1">
</input>
<input type="hidden" name="oe" value="ISO-8859-1">
</input>
<input type="hidden" name="safe" value="active">
</input>
<input type="hidden" name="cof" value="big number">
</input>
<input type="hidden" name="hl" value="en">
</input>
</td>
<td width="133" nowrap>

The google part works just fine, I can't seem to get the index server piece
to work....

Can anyone give me any suggestions?

Thanks in advance...
Brian
Jul 19 '05 #1
1 6100
Forget about what happens based on the radio button selection and just get a
handle on the radio buttons first with a form like this:

test.asp:

<form method="GET" action="test.asp">
<input type="radio" name="sitesearch" value="PutValueHere">Web
<input type="radio" name="sitesearch" value="sitename">GeoPlace
<input type="radio" name="sitesearch" value="geoworld" checked>
</form>

<%

Select Case Request.Querystring("sitesearch")
Case "PutValueHere"
Response.Write "You selected the ""Web"" radio button."
''code here
Case "sitename"
Response.Write "You selected the ""sitename"" radio button."
''code here
Case "geoworld"
Response.Write "You selected the ""geoworld"" radio button."
''code here
End Select
%>
Ray at home

"Brian" <bw*****@aip.com> wrote in message
news:e9**************@TK2MSFTNGP11.phx.gbl...
Hello all...

I have a page that will be performing a search. The search consists of 3
radio button options. The first 2 will search the entire web through google and the site as indexed by google. The 3rd option I want to search the site using MS-Index Server. I can get them to run individually but I'm not sure how to set the parameters and test for the 3rd radio button (index server)
selected on the page.

I thought that, for example, my Searchinc.asp could have an
If...then...else:

<form action="../gw/incl.idq" method="GET">
<td valign="bottom" align="right" width="100%">
<input type="HIDDEN" name="CiScope" value="/geo_portal/gw">
<input type="HIDDEN" name="CiMaxRecordsPerPage" value="10">
<input type="HIDDEN" name="TemplateName" value="incl">
<input type="HIDDEN" name="CiSort" value="rank[d]">
<input type="HIDDEN" name="HTMLQueryForm" value="../gw/incl.asp">
</td>
<td width="1">
</form>
<%else%>
<!-- SiteSearch Google -->
<form method="get" action="http://www.google.com/custom"
target="google_window">
<%end if%>
<table width="770" height="32" border="0" align="center" cellpadding="0"
cellspacing="0" bgcolor="#FFFFFF">
<tr class="geoTopLinks"><td width="99" height="32" align="left"
valign="top" nowrap="nowrap">
<a href="http://www.google.com/">
<img SRC="http://www.google.com/logos/Logo_25wht.gif" alt="Google"
height="32" border="0"></img></a>
</td>
<td nowrap>
<input type="hidden" name="domains" value="www.site.com"></input>
<input type="text" name="q" size="15" maxlength="255" value=""></input>
<input type="submit" name="sa" value="Search">
</input> </td>
<td width="342" height="32" nowrap><font size="-1" color="#000000">
<input type="radio" name="sitesearch" value="">
<span class="Verd10pt">Web
<input type="radio" name="sitesearch" value="sitename">
GeoPlace
<input type="radio" name="sitesearch" value="geoworld" checked>
GeoWorld
</span></font><br>
<input type="hidden" name="client" value="pub">
</input>
<input type="hidden" name="forid" value="1">
</input>
<input type="hidden" name="channel" value="a number">
</input>
<input type="hidden" name="ie" value="ISO-8859-1">
</input>
<input type="hidden" name="oe" value="ISO-8859-1">
</input>
<input type="hidden" name="safe" value="active">
</input>
<input type="hidden" name="cof" value="big number">
</input>
<input type="hidden" name="hl" value="en">
</input>
</td>
<td width="133" nowrap>

The google part works just fine, I can't seem to get the index server piece to work....

Can anyone give me any suggestions?

Thanks in advance...
Brian

Jul 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Ken Fine | last post by:
I've made a content managment system that uses icons to represent page layouts. To choose a different layout, the user clicks on a radio button...
23
by: Phil Powell | last post by:
<b>Agency 4</b> <input type="radio" name="permission" value="1" checked> Yes <input type="radio" name="permission" value="0" > No <br> <b>Agency...
1
by: sman | last post by:
Hi, I recently read this article on About.com on how to create required fields for a form:...
10
by: DettCom | last post by:
Hello, I would like to be able to display or hide fields based on whether a specific Yes/No radio button is selected. This is in conjunction with...
4
by: Oscar Monteiro | last post by:
I Have to sets of Radio buttons like so: <input type="radio" name=p1 value=1> <input type="radio" name=p1 value=2> <input type="radio" name=p1...
5
by: Digital Puer | last post by:
I have the following HTML form: - radio button A (default selected) - radio button B - input field, of type "file" with "Choose" button -...
1
by: Jerry | last post by:
We have a 10-question quiz for kids, each question being a yes or no answer using radio selections. I'd like to keep a current total of yes's and...
3
by: teddysnips | last post by:
Back in the dim mists of antiquity I used to program in VBA for Microsoft Access (hey, don't knock it - very useful tool for the right...
4
by: Z.K. | last post by:
I started a forms application and I put on the form three buttons. In the functions for the radio buttons I put in a single messagebox like: ...
10
by: =?Utf-8?B?UGFycm90?= | last post by:
I have 8 radio buttons on my Windows form but I can only select up to the first 4. If I click on any button beyond the 4th one and then come back...
0
by: tammygombez | last post by:
Hey fellow JavaFX developers, I'm currently working on a project that involves using a ComboBox in JavaFX, and I've run into a bit of an issue....
0
by: tammygombez | last post by:
Hey everyone! I've been researching gaming laptops lately, and I must say, they can get pretty expensive. However, I've come across some great...
0
by: concettolabs | last post by:
In today's business world, businesses are increasingly turning to PowerApps to develop custom business applications. PowerApps is a powerful tool...
0
by: teenabhardwaj | last post by:
How would one discover a valid source for learning news, comfort, and help for engineering designs? Covering through piles of books takes a lot of...
0
by: CD Tom | last post by:
This only shows up in access runtime. When a user select a report from my report menu when they close the report they get a menu I've called Add-ins...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.