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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

retaining values when we move to prev. screen

Status
Not open for further replies.

DKL01

Programmer
Sep 14, 2000
233
US
Hi,

In page1.asp I have 2 listboxes. Listbox #1 lists all employees in the office and listbox #2 lists selected employees from the listbox #1. When I click on “Next” button applications calls page2.asp using

Document.form1.action = “Page2.asp?selectedemployee=” + document.form1.listbox1.options[0].value.
Document.sublit();

In page2.asp I have “Previous” button. This button should take to previous screen i.e page1.asp. My problem is how to retain/display original values in listbox #1 and listbox #2
 
Dilp,

You have not provided code or a description of how you synchronize the two list boxes in page1.asp

Also your code is confusing... you always send the first element in listbox1 as the 'selectedemployee' variable to page2.asp?

Also since you are submitting a form to page2.asp there is no reason to build a querystring in the 'action' property of the form, or am I missing something?

-pete
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top