473,776 Members | 1,645 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

retain value of radio button on the next page or previous page

16 New Member
Hi to all,

I have created a survey page that consists of 4 pages 10 question on each page. Each question are just answer using a radio button. Now my problem is i have to retain all the answer/value of radio button even the user click previous page then going back to current page. appreciate any idea please.

thank you in advance
Nov 6 '09 #1
3 4660
Frinavale
9,735 Recognized Expert Moderator Expert
If you are referring to the web-browser's previous and back buttons you may have a few problems with this.

When you hit the "back button" (or previous button) a cached version of the page is displayed to you. If your page doesn't use Ajax to post information back to the server it is quite usual for these pages to retain everything selected by the user during the last full page submit to the server. (Same goes for hitting the "next" button too).

Sometimes, if you have managed to clear the user's cache (or specified that the page shouldn't be cached), or if your page uses Ajax to submit information to the server, the page will be displayed as it was originally.

If you aren't referring to the web-browsers back/next buttons...and you have links or buttons as part of your page to help with user navigation....t hen you can store the information in Session so that it is available to all pages.

Please explain, in more detail, what you mean by "next/previous" buttons....and explain try to explain how/why you think the information is being lost.

-Frinny
Nov 9 '09 #2
rjlorenzo
16 New Member
Yes I'am using a next/previous button. how i could use a session on this. can i have an basic example please.

thank you very much and more power.
RJ Lorenzo
Nov 11 '09 #3
omerbutt
638 Contributor
are you using
Expand|Select|Wrap|Line Numbers
  1.  <button type="submit" name="Next" value="Next" />
  2.  <button type="submit" name="Prev" value="Prev" />
  3.  
or the buttons on the top left side of the browser
for using session
Expand|Select|Wrap|Line Numbers
  1. Session("VariableName")=value/string
  2.  
  3.  
Nov 11 '09 #4

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

Similar topics

0
1121
by: Dan | last post by:
HI, How can i hide the 2 buttons (next/previous month) in the MonthCalendar Control ? Is there a way to do it ? Thank is advance Dan
2
1771
by: tshad | last post by:
I have 2 radio buttons: <asp:RadioButton ID="radDetail" GroupName="detailSummary" Text="Detail" checkedChanged="RadDetail_Clicked" runat="server" /> <asp:RadioButton ID="radSummary" GroupName="detailSummary" Text="Summary" checkedChanged="RadSummary_Clicked" runat="server" /> </p> I want to have RadDetail_Click or RadSummary_Click executed as soon as the radio button is clicked.
3
5949
by: David Hearn | last post by:
I have a datalist that I have inserted a radio button into. The datalist populates with a list of items and each one has a radio button next to it. I need to use the radio button to allow the user to select a default item so when the user clicks one of the radio buttons, it needs to clear the checked property from the rest. This is default behavior for the radio button, but it doesn't work when it is embedded into a datalist. I have tried...
3
5847
by: Harry Haller | last post by:
I have a radio button group. When the page loads none of them are selected. OnClick selects ONE and clicking another one selects a different one - this is normal behavior. I want to modify it so that clicking on a radio which is already selected will deselect it so that none of the group are selected. I can get the required behavior with a double-click: ondblclick="this.checked=!(this.checked);"
1
1680
by: rmeganathan | last post by:
I have problem with passing radio button array in PHP. I am using multiple questions in the same page and each question contains 4 radio button choices. I am using arrary in the form. When I pass the values radio control is not working properly. And also all the questions radio buttons are consideres as one set. (Example 4 question x 4 radio choices = 16 radio buttons. I can select only one outof 16. not 4) Pl give the sample code to solve...
8
4615
by: photoboy | last post by:
I have racked by brain long enough on this, so now I need the help of someone who knows what they are doing. Here is what I am trying to achieve: First, I have two radio buttons (both unchecked) that need to be validated when the submit button is clicked. Instead of the standard alert window popping up (which I have now), I want the radio button background color to change from the table color (E2E2E2) to red (FF0000) for both buttons...
8
6767
by: romano2717 | last post by:
I used the for loop variable $i to each radio button so that each radio button will have a unique name. the problem now is how can i display the values selected in the radio button on the same page as where the form is located. your help is greatly appreciated.. thanks here's the code: NOTE: this code is cut short, i only posted the part where i got stuck <?php if(isset($_GET)){ $num = $_GET; $num = 2; for($i=1; $i<=$num; $i++...
2
2487
by: deepunarayan | last post by:
Hi, I have an ASP page with 3 frames on it. The let frame will have Index (in Tree Structure format) right one is the Content Frame shows the contents on the selected node. The bottom frame as next and previous buttons. My work is to make those next and previous buttons to move according to my selections. All the pages stored in Database. I am able to set selected value to the next and previous buttons using...
3
6349
by: christy jones | last post by:
I would like to add 20 offers per page and becuase the database is updated daily. i need a way to allow access to other pages so that all offers will be displayed. i was thinking the next / previous function, but my page count can constantly change so im wanting some way of it automatically only having the amount of pages needed to support the amount of offers. normally i can display anywhere from 100-1000+ offers code: <?...
0
9628
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
9464
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
10120
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
10061
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
9923
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
8952
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
7471
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
5367
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...
1
4031
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

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.