Solved

Passing data between pages...

Posted on 1998-02-06
8
171 Views
Last Modified: 2013-12-25
I am setting up a customization page.  The page has options with checkboxes.  There is a submit button which processes the options.  This all works fine.  The issue:  When the user clicks on one of the options, I want it to be a link to a set of sub-options.  These sub-options also have checkboxes and a submit button.  This submit button will take the user back to the main options page.  When the user goes back to the main options page, I would like the options checkboxes to remember which ones were checked before the user went to the sub-options.
Example:

X Option1
_ Option2
X Option3
_ Option4

When the user clicks on the link "Option3", they will go to a page which has:
_ sub-option1
_ sub-option2
[submit]
When they hit submit, they go back to the main option page.

How can I keep the options around?  How can I let the options page know about the sub-options which have been selected?
0
Comment
Question by:jmills99
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
  • 2
8 Comments
 
LVL 5

Expert Comment

by:julio011597
ID: 1831957
Hidden fields.

Feel free to go deeper into the question.

Regards
0
 

Author Comment

by:jmills99
ID: 1831958
I don't think I can use hidden fields, because I don't know what the values will be until the user selects the checkboxes.  Basically, I like to think of it this way... I have ONE form with a bunch of checkboxes, BUT it is on multiple pages. The user can go back and forth between the pages and all the information needs to be persistent until the submit button on the master options page is pushed.  I was thinking along the lines of each link to the sub-pages actually being calls to a CGI which would read in all the data on the master page and pass it to the sub pages which could pass it back.  But, without each link being a submit button, I can't get the data from the other form elements...  Does this help?
0
 
LVL 5

Expert Comment

by:julio011597
ID: 1831959
> each link to the sub-pages actually being calls to a CGI which would read in all the data on the master page and pass it to the sub pages which could pass it back

well, this seems the easier way, and it's what i meant.

When you push submit on a sub-page, you can pass back the whole data only if it is stored somewhere on the form itself: hidden fields.

-julio
0
Is Your DevOps Pipeline Leaking?

Is your CI/CD pipeline a hodge-podge of randomly connected tools? You’ve likely got a tool to fix one problem & then a different tool to fix another, resulting in a cluster of tools with overlapping functionality. Learn how to optimize your pipeline with Gartner's recommendations

 
LVL 5

Expert Comment

by:julio011597
ID: 1831960
BTW, how did you make your checkboxes be links either?
Javascript events?
0
 

Author Comment

by:jmills99
ID: 1831961
So, can I make a link act as a submit button?  Or an image?  I don't think they'll go for a page with a bunch of buttons with checkboxes?
0
 
LVL 32

Expert Comment

by:jhance
ID: 1831962
To make an image act like a submit button:

<input type="image" SRC="image.gif" height=22 width=72 BORDER=0 ALIGN=absmiddle>

Put this in your form.  When it is clicked, the form will be submitted.
0
 
LVL 32

Accepted Solution

by:
jhance earned 200 total points
ID: 1831963
Back to your original question about passing data between pages.  There are 3 ways to do this:

1) HIDDEN inputs.  This was mentioned but not explained very well.  As each page of the data is filled out and sent back to the server, the next page is displayed in the brower with the last (and all prior) sets of data included as hidden inputs.  When you get to the final page of user input, the last submit sends all of the data at once to the server for final processing.

2) Page scripting in JavaScript or VBScript.  Here you can store things in "Hidden Pages" for transport from one page to the next.  I've not done this but there was a good article about it recently in PC Magazine.  I'm not sure but I believe it was in a 1998 issue.

3) Server control with cookies.  If you have control of the server environment, this it probably the cleanest.  It depends, of course, on the user accepting the cookie.  All web servers of common use (for real server use) support these now.
0
 
LVL 5

Expert Comment

by:julio011597
ID: 1831964
What programming language are you going to use to build your CGI?
Do you need a sample?
0

Featured Post

How Do You Stack Up Against Your Peers?

With today’s modern enterprise so dependent on digital infrastructures, the impact of major incidents has increased dramatically. Grab the report now to gain insight into how your organization ranks against your peers and learn best-in-class strategies to resolve incidents.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
ICACL switch help. How to include current folder 2 64
Script to change all permissions to my user 7 54
Understanding ping command in Ubuntu 5 64
Edit my bash script 16 46
This tutorial will discuss the log-in process using WhizBase. In this article I assume you already know HTML. I will write the code using WhizBase Server Pages, so you need to know some basics in WBSP (you might look at some of my other articles abo…
Recently I have been answering a lot of questions like this in IT forums that I frequent. The question posed is usually something along the lines of "We have software X installed and need to uninstall it for reason Y" or some other variant of the sa…
Learn the basics of while and for loops in Python.  while loops are used for testing while, or until, a condition is met: The structure of a while loop is as follows:     while <condition>:         do something         repeate: The break statement m…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

732 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question