473,785 Members | 2,498 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Forms w/ two buttons

YT
Greetings,

Just wondering if someone out there can help with this issue.

I have a questionnaire that i'm building. Each step is a separate web page with a form and a next button & back button, similar to a wizard.

What i would like to do is to make sure that all the information on the form gets retained. i'm doing this via asp & session cookies. So when the user clicks the next button, the form info is submitted and put into session cookies. if the page is redisplayed for whatever reason, the form will be pre-filled out with the user's input. No problem there.

My issue is that if the user clicks on the Back button, i would like the information to be stored as well. SO i have one form, 1 set of input that needs to be stored in session cookies, but two buttons. One that saves the input and takes the user to the next step, and the other that saves the input and sends the user back one step.

Any ideas?

thx,
yt

Jul 20 '05 #1
3 3281
"YT" <yt******@MAPSO Nfunkychickens. org> wrote:
Greetings,

Just wondering if someone out there can help with this issue.

I have a questionnaire that i'm building. Each step is a separate web page with a form and a next button & back button, similar to a wizard.

What i would like to do is to make sure that all the information on the form gets retained. i'm doing this via asp & session cookies. So when the user clicks the next button, the form info is submitted and put into session cookies. if the page is redisplayed for whatever reason, the form will be pre-filled out with the user's input. No problem there.

My issue is that if the user clicks on the Back button, i would like the information to be stored as well. SO i have one form, 1 set of input that needs to be stored in session cookies, but two buttons. One that saves the input and takes the user to the next step, and the other that saves the input and sends the user back one step.

Any ideas?


Have the page to which the form submits save the data from the current
page, check which button was clicked, and then redirect to the
appropriate new page.

--
Harlan Messinger
Remove the first dot from my e-mail address.
Veuillez ôter le premier point de mon adresse de courriel.
Jul 20 '05 #2
"YT" <yt******@MAPSO Nfunkychickens. org> wrote:
I have a questionnaire that i'm building. Each step is a separate web
page with a form and a next button & back button, similar to a
wizard.
How often will users want to go back? A questionnaire is not a wizard.
Besides, what does "going back" mean here? Something else than using a
Back button?

Unless there are special reasons to provide some special "back"
functionality, I'm sure that the "back" button confuses more than helps.
What i would like to do is to make sure that all the information on
the form gets retained. i'm doing this via asp & session cookies.
Session cookies are not reliable. Besides, to make your site legal in the
EU, you would need to have a description of the use of cookies on it, and
this means extra work. (It's hard to describe the use in a manner that is
legally acceptable _and_ understandable _and_ does not make people
unnecessarily nervous.)

Using hidden fields is probably a better way. Make the script that
generates the first form generate and include a session id like
<input type="hidden" name="session" value="13894725 76148">
and make further processing copy the field to new forms generated.
My issue is that if the user clicks on the Back button, i would like
the information to be stored as well.


You haven't specified what the "Back button" is, and does. And why should
the information be stored if the user wants to go _back_?

You could use different name attributes, or different value attributes,
or both, in the buttons, just as the FAQ says, in order to distinguish
between them in the form handler. But this doesn't work reliably on
current browsers if there are text input fields in the form, since
browsers may treat Enter in a text input field as a request to submit the
form _as if_ one of the buttons had been used - and browsers may differ
in interpreting which of the buttons should be simulated.

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html

Jul 20 '05 #3
On Sun, 6 Jun 2004, Jukka K. Korpela wrote:
Session cookies are not reliable. Besides, to make your site legal in the
EU, you would need to have a description of the use of cookies on it,


A couple of commercial sites I've found so far which tried to do that,
would not allow me to read the cookie policy until after I'd accepted
a cookie. Some mistake, surely?

(Sorry, I don't have URLs - I quickly left their site and forgot
them).

Jul 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
3752
by: KK | last post by:
Windows Forms Inheritance, Incomplete? I was playing around with Windows Forms and found out this Forms Inheritance feature. The moment I saw that, I felt this can be used effectively if the application contains couople of forms which have a consistant look and also shares SOME similar functionality between the forms.
2
2203
by: KK | last post by:
** Posting it here cause after couple of days no body responded.** I was playing around with Windows Forms and found out this Forms Inheritance feature. The moment I saw that, I felt this can be used effectively if the application contains couople of forms which have a consistant look and also shares SOME similar functionality between the forms.
9
3504
by: Terrance | last post by:
Good Afternoon: I was hoping if someone could share some light on a problem that I'm facing. When I create a Visual Basic.Net program and I use the XP style for my Window Forms and buttons; if I add images to my menu buttons they don't show when the form is created. But, if I don't use the XP style the images show on my buttons correctly. Can someone please explain to me what the problem is and how to get around it? Here is how I'm calling...
2
3796
by: Greg Bacchus | last post by:
Hi, I'm getting an exception that really has me stumped. It's sporadic at best, it's only happened a handful of times. This particular time it happened when the user pressed 'Alt-S' to save the data that they were entering. Following is all exception information. Any thoughts much appreciated. Cheers
6
3440
by: MX1 | last post by:
Hi, I've created a series of navigation buttons to be used as a standard across many forms in an Access DB. Does anyone know an easy way to cut and paste these navigation buttons into each new form I create. Re-creating them is VERY Painful and regular cut and paste doesn't work. I've read something about making a standard module for each button but I don't know how to assign that to the new buttons on each form. Help.... :(
6
2240
by: Patrick Coghlan | last post by:
I want to create about 4 forms with the same dimensions and background colours, similar to the forms one has to traverse when installing various software packages. I'm using Visual Studio and C++ (changing to C# soon) and can create separate forms, but I really just want to clone the first one, have the user select different options on each form and navigate between them via the PREV-NEXT-OKAY-CANCEL buttons on the bottom of the form. ...
3
5098
by: Jason | last post by:
Hi all This may seems like an od subject. I would like to know if you can apply some sort of "stylesheet" to winforms? like in ASP.NET you can define .css files to determine your look and feel of your HTML web pages. the obvious advantage of using HTML stylesheets is that all your buttons, drop downs, etc all look the same. As well as if you wish to change something to the general look and feel of the web site, you could just change the...
8
579
by: TJS | last post by:
what are folks doing to get around limitation of one server form per page ?
4
2187
by: robert.waters | last post by:
Hello, I have a main form that is maximized when my application loads; this main form contains links to all other forms. I've had to specify the Popup property of these other forms, so that they are not maximized when they load. Unfortunately, this seems to have had the consequence of removing them from the Windows taskbar, which makes navigating between open forms more difficult. How would you developers deal with navigation between...
6
2512
by: Zetten | last post by:
This is going to be a long one, but hopefully that will make it easier to understand. I know I don't like posts with too little detail when I'm searching for help. I am creating a form with which a user can make forms. After filling in basic details like Title, Author, Description, the user can add multiple input fields of different types. This is done in the form of a table, with each row acting for a single input, i.e. input1, input2,...
0
9481
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,...
1
10095
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
8979
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
7502
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
6741
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
5383
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
5513
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4054
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
2881
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.