473,382 Members | 1,078 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

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

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 4640
Frinavale
9,735 Expert Mod 8TB
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....then 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
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 512MB
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
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
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"...
3
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...
3
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...
1
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...
8
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)...
8
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...
2
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...
3
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...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.