473,503 Members | 2,165 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to select radio button and then show more options?

75 New Member
Hello,

I was hoping someone could provide or suggest a resource where I may be able to see implementation of the following programming situation.

I would like to create a simple radio button form. I would like it when a user clicks a radio button for the form to show more options that are related to that radio button and only that radio button.

For example, if I have a form with two possibilities:
[] Right
[] Left

If someone clicks on the radio button for 'Right' I would like two more options to show up below this selection where the user is able to make another selection:
[x] Right
[] Option1
[] Option2
[]Left

Then, I am looking for a way to store all of the user's selections in a mySQL database.

If someone can provide some sort of guidance, example, resource, or idea on how to implement this type of programming problem I would be greatly appreciative!

Thanks!
Jan 23 '11 #1
1 2189
HaLo2FrEeEk
404 Contributor
Looks like a tree-style setup. There are several ways you could accomplish this. This is mostly a design question, if you ask me, but there is a programming aspect to it.

First, you could catch the onclick event for the radio button and call some AJAX to fetch more information from the server.

You could also set up a series of arrays and use them to drive the tree.

AJAX would probably be easier, just catch the onclick event and make a call to a PHP page that gets or calculates the next set of options for a user to select, based on what they already selected.
Jan 24 '11 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

4
3226
by: Jay | last post by:
I have a form used to submit data (no surprises there!). I'd like to be able to populate the same form with previously submitted data. The data lives in a database once submitted and using ASP I...
10
2601
by: Scuba Rob | last post by:
I am having problems on getting the radio button to work with my.settings correctly. I want the program to check to see which one was last saved to use at startup. The closest I have come is that I...
1
4886
by: Scott D Johnson | last post by:
I am using Visual Studio .NET 2003 (I also have VS .NET 2005 installed) I have a group of four radio buttons, and button, to set the first radio button as checked. When I run the app, and say...
2
12419
by: Eric Layman | last post by:
Hi, I have a radio button and a combo box. Upon changing a value for radio button, the combo box values will be dynamically updated. I have an idea on how to go abt doing it but Im stuck...
3
11242
by: shanmukhi | last post by:
Hi All, how to control the selection of radio buttons in jsp. i think i have to write java script for that.. my code is like this <form name="form1"> <input type="radio" name="male">Male...
10
3385
by: mukeshrasm | last post by:
Hi I have a html in which there is two selection box and two radio button. Radio buttion is of array type. What I want if user will click the radio button then only he/she be able to make...
3
2006
by: tshad | last post by:
I have a form that has 2 sets of radiobuttons. As it happens I created 1 radiobutton and then copied it a pasted it 4 times. I have 4 radiobuttons split up into 2 groupboxes (2 radiobuttons...
1
3382
by: Izzy123 | last post by:
how do we auto selected a radio button when the user enters a numeric value in a textbox? my code for radio button and text box are as follows: <li>Do you like your membership priviledge? ...
1
1499
by: tejas80 | last post by:
Hi All, I have one issue with me. I have two radio buttons on screen.If i will select one of the radio button then it will enable one hidden <DIV> tag from form and it i will selection another...
0
7093
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...
0
7353
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...
1
7011
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...
0
7468
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...
0
5596
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,...
1
5023
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...
0
4689
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...
0
3170
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1521
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 ...

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.