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

Submit form to another and back to original 1

Status
Not open for further replies.

rtshort

IS-IT--Management
Feb 28, 2001
878
US
I want to let a user choose from combo1 (form1)and submit the form to another asp form (form2) to fill combo2 on form1. How do I get the information from the second asp file
form2) back to the original page(form1) Rob
Just my $.02.
 
have you just tried requesting it in the second form and then saving it to a session var. at that point you can give the first form the value of the session variable

so
form1
<input type=&quot;text&quot; name=&quot;text1&quot;>
onSubmit

form2
session(&quot;text1&quot;) = request.querystring(&quot;text1&quot;)

and back at form1
<input type=&quot;text1&quot; name=&quot;text2&quot; value=&quot;<% =session(&quot;text1&quot;)%>&quot;>

how would that work out for you? [bomb]
I may not get it the 1st or 2nd time,
but how sweet that 15th time can be.
admin@onpntwebdesigns.com
 
That should do it. I'm having trouble with Session Variables. I can't get them to work right for some reason. Maybe because I'm working &quot;locally&quot; in Visual Interdev?

Will cookies with no expiration date work the same way? Rob
Just my $.02.
 
are you running IIS?
How are you testing your asp pages

cookies will work but that kind of defeats the idea of using the server so we don't have the chance of someone not have cookies turned on. [bomb]
I may not get it the 1st or 2nd time,
but how sweet that 15th time can be.
admin@onpntwebdesigns.com
 
I'm using IIS 5.0 with Win2K Pro. I'm not sure why I can't get the session object to work. It works on the next page but not after that. It's like it looses them when the 2nd page is changed. I checked them on Window_OnLoad with a MsgBox.

I may not have IIS set up just right or something. I am also working in the Local mode so all of my file are under &quot;folder/folder_local&quot; It may not be seeing the Global.asa file. Right now I'm stuck on getting info from form to form and back. Rob
Just my $.02.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top