Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_web_howto thread: Getting data from multiple forms


Message #1 by "O'Hara, Elliott M" <EMOHARA@k...> on Tue, 30 Jan 2001 10:13:21 -0500
Hi all,

	I have a page (fame.htm) that opens two other pages with forms... 

when the user clicks submit I want the page to refer to another but grap

data the user imputted in both forms (on both pages). 

How to????



Thanxz

elliott

Message #2 by Scott Watermasysk <swatermasysk@C...> on Tue, 30 Jan 2001 12:06:52 -0500
Elloitt,



In the form of your second page, create hidden fields. When the page is

loading, set these fields values to the data from the previous page.



<INPUT TYPE="hidden" Name "PreviousFieldOne" Value

<%=Request.Form("PreviousFieldOne")%>>



The problem with this is that if the user leaves on the second page you

don't get any of the information.



If you are using a database:

You might want to consider updating your database after the first page is

visited, and then use the hidden field to pass a unique ID number. After the

second page is submitted, you can check for the ID number, and update

accordingly. 



-Scott





-----Original Message-----

From: O'Hara, Elliott M [mailto:EMOHARA@k...]

Sent: Tuesday, January 30, 2001 10:13 AM

To: ASP Web HowTo

Subject: [asp_web_howto] Getting data from multiple forms





Hi all,

	I have a page (fame.htm) that opens two other pages with forms... 

when the user clicks submit I want the page to refer to another but grap

data the user imputted in both forms (on both pages). 

How to????



Thanxz

elliott

Message #3 by "Alex Shiell, ITS, EC, SE" <alex.shiell@s...> on Tue, 30 Jan 2001 17:01:27 -0000
give the other window a name when you open it - then you will be able to

refer to it and access any objects such as input fields.



open your new window with the open method:



window.open (sURL, "newwin")



e.g. to access a field called "inputfield1" in a window called "newwin"



var s = window.top.newwin.document.all.inputfield1.value







-----Original Message-----

From: O'Hara, Elliott M [mailto:EMOHARA@k...]

Sent: Tuesday, January 30, 2001 3:13 PM

To: ASP Web HowTo

Subject: [asp_web_howto] Getting data from multiple forms





Hi all,

	I have a page (fame.htm) that opens two other pages with forms... 

when the user clicks submit I want the page to refer to another but grap

data the user imputted in both forms (on both pages). 

How to????



Thanxz

elliott



Scottish Enterprise Network

http://www.scottish-enterprise.com

Message #4 by "PassY" <pteunissen@c...> on Tue, 30 Jan 2001 18:11:23 +0100
a cookie can be used that's expires after closing the browser. or maybe a

session can be used



----- Original Message -----

From: Scott Watermasysk <swatermasysk@C...>

To: ASP Web HowTo <asp_web_howto@p...>

Sent: Tuesday, January 30, 2001 18:06

Subject: [asp_web_howto] RE: Getting data from multiple forms





> Elloitt,

>

> In the form of your second page, create hidden fields. When the page is

> loading, set these fields values to the data from the previous page.

>

> <INPUT TYPE="hidden" Name "PreviousFieldOne" Value

> <%=Request.Form("PreviousFieldOne")%>>

>

> The problem with this is that if the user leaves on the second page you

> don't get any of the information.

>

> If you are using a database:

> You might want to consider updating your database after the first page is

> visited, and then use the hidden field to pass a unique ID number. After

the

> second page is submitted, you can check for the ID number, and update

> accordingly.

>

> -Scott

>

>

> -----Original Message-----

> From: O'Hara, Elliott M [mailto:EMOHARA@k...]

> Sent: Tuesday, January 30, 2001 10:13 AM

> To: ASP Web HowTo

> Subject: [asp_web_howto] Getting data from multiple forms

>

>

> Hi all,

> I have a page (fame.htm) that opens two other pages with forms...

> when the user clicks submit I want the page to refer to another but grap

> data the user imputted in both forms (on both pages).

> How to????

>

> Thanxz

> elliott

>
Message #5 by "O'Hara, Elliott M" <EMOHARA@k...> on Tue, 30 Jan 2001 12:13:00 -0500
The page is Frame.htm (sorry about the mispelling) so they're actually on

the two pages at the same time...

I want them to click a button on the second page and get the data from

both...

Is there a way?



-----Original Message-----

From: Scott Watermasysk [mailto:swatermasysk@C...]

Sent: Tuesday, January 30, 2001 12:07 PM

To: ASP Web HowTo

Subject: [asp_web_howto] RE: Getting data from multiple forms





Elloitt,



In the form of your second page, create hidden fields. When the page is

loading, set these fields values to the data from the previous page.



<INPUT TYPE="hidden" Name "PreviousFieldOne" Value

<%=Request.Form("PreviousFieldOne")%>>



The problem with this is that if the user leaves on the second page you

don't get any of the information.



If you are using a database:

You might want to consider updating your database after the first page is

visited, and then use the hidden field to pass a unique ID number. After the

second page is submitted, you can check for the ID number, and update

accordingly. 



-Scott





-----Original Message-----

From: O'Hara, Elliott M [mailto:EMOHARA@k...]

Sent: Tuesday, January 30, 2001 10:13 AM

To: ASP Web HowTo

Subject: [asp_web_howto] Getting data from multiple forms





Hi all,

	I have a page (fame.htm) that opens two other pages with forms... 

when the user clicks submit I want the page to refer to another but grap

data the user imputted in both forms (on both pages). 

How to????



Thanxz

elliott

Message #6 by "O'Hara, Elliott M" <EMOHARA@k...> on Tue, 30 Jan 2001 12:31:31 -0500
This is all in frames.. so Do i just target the frame?



-----Original Message-----

From: Alex Shiell, ITS, EC, SE [mailto:alex.shiell@s...]

Sent: Tuesday, January 30, 2001 12:01 PM

To: ASP Web HowTo

Subject: [asp_web_howto] RE: Getting data from multiple forms





give the other window a name when you open it - then you will be able to

refer to it and access any objects such as input fields.



open your new window with the open method:



window.open (sURL, "newwin")



e.g. to access a field called "inputfield1" in a window called "newwin"



var s = window.top.newwin.document.all.inputfield1.value







-----Original Message-----

From: O'Hara, Elliott M [mailto:EMOHARA@k...]

Sent: Tuesday, January 30, 2001 3:13 PM

To: ASP Web HowTo

Subject: [asp_web_howto] Getting data from multiple forms





Hi all,

	I have a page (fame.htm) that opens two other pages with forms... 

when the user clicks submit I want the page to refer to another but grap

data the user imputted in both forms (on both pages). 

How to????



Thanxz

elliott



Scottish Enterprise Network

http://www.scottish-enterprise.com

Message #7 by "Alex Shiell, ITS, EC, SE" <alex.shiell@s...> on Wed, 31 Jan 2001 09:45:06 -0000
yes, different frames can be accessed tin the same way



-----Original Message-----

From: O'Hara, Elliott M [mailto:EMOHARA@k...]

Sent: Tuesday, January 30, 2001 5:32 PM

To: ASP Web HowTo

Subject: [asp_web_howto] RE: Getting data from multiple forms





This is all in frames.. so Do i just target the frame?



-----Original Message-----

From: Alex Shiell, ITS, EC, SE [mailto:alex.shiell@s...]

Sent: Tuesday, January 30, 2001 12:01 PM

To: ASP Web HowTo

Subject: [asp_web_howto] RE: Getting data from multiple forms





give the other window a name when you open it - then you will be able to

refer to it and access any objects such as input fields.



open your new window with the open method:



window.open (sURL, "newwin")



e.g. to access a field called "inputfield1" in a window called "newwin"



var s = window.top.newwin.document.all.inputfield1.value







-----Original Message-----

From: O'Hara, Elliott M [mailto:EMOHARA@k...]

Sent: Tuesday, January 30, 2001 3:13 PM

To: ASP Web HowTo

Subject: [asp_web_howto] Getting data from multiple forms





Hi all,

	I have a page (fame.htm) that opens two other pages with forms... 

when the user clicks submit I want the page to refer to another but grap

data the user imputted in both forms (on both pages). 

How to????



Thanxz

elliott



Scottish Enterprise Network

http://www.scottish-enterprise.com




  Return to Index