Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Forms problem

Status
Not open for further replies.

Bramvg

IS-IT--Management
Jan 16, 2001
135
BE
Hi,

I have an application with 4 forms on 4 pages. It's a kind of a wizard, at the end of the wizard the information is passed to an exe.

Now, once the user is on page 3 it's possible that they want to change information on page 1 (or 2). I tried a javascript history.back, but it's not always sure that the information is displayed correctly + it does not what I want it to do.

Because, suppose the user is on page 4 and returns to page 1, all the information submitted on page 2 must kept how it was entered. If you would click on the 'OK' button on page 1 the values entered on page 3 would be reseted.

What I want, in briefly ;-) is to be able to change form information on the previous pages, when the information is not changed it should stay the same, only the changed information should be updated.

Does this sound logical? And is it possible?

With kind regards
Bram

 
Hey Bram,

Im new at this so this is more of an approach answer rather than the actual code but... :)

What if each of your form pages dumps its info into a single session structure. When you go back to a previous form (or to the form for the first time) have the template check if the keys (form fields) already exist in the structure - if they do, use the info from the structure to populate the form and offer an update button that will simply update only the keys that are on that form page. The data in the structure from other form pages would remain. When finished making chages you could dump everything from the structure to your exe.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top