473,788 Members | 3,053 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 6322
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
3611
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
2462
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
6164
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
13462
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
3282
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
3110
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
8857
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
18596
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
3093
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
2210
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
9655
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10363
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
10172
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...
0
9964
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...
1
7517
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
6749
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5535
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4069
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2894
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.