473,893 Members | 1,567 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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...els e:

<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="CiMaxReco rdsPerPage" value="10">
<input type="HIDDEN" name="TemplateN ame" value="incl">
<input type="HIDDEN" name="CiSort" value="rank[d]">
<input type="HIDDEN" name="HTMLQuery Form" 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="#FFFFF F">
<tr class="geoTopLi nks"><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="sitesearc h" value="">
<span class="Verd10pt ">Web
<input type="radio" name="sitesearc h" value="sitename ">
GeoPlace
<input type="radio" name="sitesearc h" 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 6326
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.as p">
<input type="radio" name="sitesearc h" value="PutValue Here">Web
<input type="radio" name="sitesearc h" value="sitename ">GeoPlace
<input type="radio" name="sitesearc h" value="geoworld " checked>
</form>

<%

Select Case Request.Queryst ring("sitesearc h")
Case "PutValueHe re"
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.co m> wrote in message
news:e9******** ******@TK2MSFTN GP11.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...els e:

<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="CiMaxReco rdsPerPage" value="10">
<input type="HIDDEN" name="TemplateN ame" value="incl">
<input type="HIDDEN" name="CiSort" value="rank[d]">
<input type="HIDDEN" name="HTMLQuery Form" 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="#FFFFF F">
<tr class="geoTopLi nks"><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="sitesearc h" value="">
<span class="Verd10pt ">Web
<input type="radio" name="sitesearc h" value="sitename ">
GeoPlace
<input type="radio" name="sitesearc h" 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
3616
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 associated with each layout icon. On click of one of the radio buttons, the form submits and a new layout is chosen. I would prefer if people can click on the icons themselves , rather than using the radio buttons.The border or background associated with the selected icon can highlight...
23
2478
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 5</b> <input type="radio" name="permission" value="1" checked> Yes <input type="radio" name="permission" value="0" > No <br>
1
6167
by: sman | last post by:
Hi, I recently read this article on About.com on how to create required fields for a form: http://javascript.about.com/library/scripts/blformvalidate.htm Everything works great except that there are no instructions on how to make checkboxes and radio buttons required. I've tried adding these to my form, but I'm having no luck. Anyone know how to add radio buttons and checkboxes using the existing code mentioned on the url? Thank you!
10
13470
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 a posting a just made here in the same group related to checkboxes. Thanks!!!
4
3287
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 value=3> <br> <input type="radio" name=p2 value=1> <input type="radio" name=p2 value=2> <input type="radio" name=p2 value=3> then a text area and a button:
5
3118
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 - submit button I would like to have it so that if the user clicks on the "Choose" button of the input field (to select a file on the local disk), then radio button B is automatically
1
8867
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 no's at the bottom of the quiz (if the user selects yes to question 1, the total of yes's increases by 1). I've been searching for a while but I'm not sure I'm searching with the right keywords. Can anyone direct me to a source I can review to learn how to do this? Thanks! --
3
18607
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 application). This had a really handy control in the toolbox called an Option Group. It could contain any number of radio buttons (which Access called Option Buttons), each of which had a "value" property. The Option Group as a whole had a property equal to the value of the selected radio button. Thus...
4
3096
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: MessageBox("Hello 1") MessageBox("Hello 2") MessageBox("Hello 3")
10
2214
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 into the program again the 4th button is always checked instead of the 5th or 6th etc. I followed the logic thru the debugger and can see where the 5th button is progammatically checked but the window shows the 4th checked instead. Does anyone have a clue as to what's going on here? All of the...
0
9830
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11243
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10837
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10927
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10469
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9645
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
8021
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5858
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
6066
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.