473,789 Members | 2,860 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Forward Posted Form Data

suppose I have the following:

-----------BEGIN page1.asp----------
<form method="post" action="page2.a sp">
<select name="someData" size="1" class="smallbut ton">
<option value="1">Whate ver</option>
</select>
'and a submit button
</form>
----------END page1.asp--------------

-----------BEGIN page2.asp----------
aVariable = Request.Form("s omeData")

<form method="post" action="page3.a sp">
<select name="someOtheJ junk" size="1" class="smallbut ton">
<option value="1">Whate ver</option>
</select>
'and a submit button
</form>
----------END page2.asp--------------

Is there any kind of way to forward "someData", whch was
posted into page 2, to page 3 without making it more form data in page2. I
pretty much want to just be able to do something simple in page 3 like this:

-----------BEGIN page3.asp----------
anotherVariable = Request.Form("s omeData")
----------END page3.asp--------------
Thanks in advance.
Jul 19 '05 #1
2 3740
"Mark Watkins" wrote:
: suppose I have the following:
:
: -----------BEGIN page1.asp----------
: <form method="post" action="page2.a sp">
: <select name="someData" size="1" class="smallbut ton">
: <option value="1">Whate ver</option>
: </select>
: 'and a submit button
: </form>
: ----------END page1.asp--------------
:
: -----------BEGIN page2.asp----------
: aVariable = Request.Form("s omeData")
:
: <form method="post" action="page3.a sp">
: <select name="someOtheJ junk" size="1" class="smallbut ton">
: <option value="1">Whate ver</option>
: </select>
: 'and a submit button
: </form>
: ----------END page2.asp--------------
:
: Is there any kind of way to forward "someData", whch was
: posted into page 2, to page 3 without making it more form data in page2.
I
: pretty much want to just be able to do something simple in page 3 like
this:
:
: -----------BEGIN page3.asp----------
: anotherVariable = Request.Form("s omeData")
: ----------END page3.asp--------------

You cannot retrieve a variable's value from a page header by using
Request.Form any other way than METHOD=POST from a form where ACTION=
targets the page you're retrieving. So, I see two possibilities without
using cookies, files, etc.

Hidden field inside a form.

page2.asp
.... inside form ...
<input id="someData" name="someData" type=hidden value="<%=aVari able%>" />

OR

You could use a session variable.

page2.asp
Session("aVaria ble") = Request.Form("s omeData")

page3.asp
anotherVariable = Session("aVaria ble")

--
Roland

This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose.
-Technet Knowledge Base-
http://support.microsoft.com/default...&ln=EN-US&FR=0
-Technet Script Center-
http://www.microsoft.com/technet/tre...er/default.asp
-MSDN Library-
http://msdn.microsoft.com/library/default.asp
Jul 19 '05 #2
If you want to use Request.Form in page 3 then you will have to
forward it using form variables. If you don't need to use Request.Form
you could use Session Variables.

"Mark Watkins" <ma*********@ya hoo.com> wrote in message news:<#K******* *******@TK2MSFT NGP12.phx.gbl>. ..
suppose I have the following:

-----------BEGIN page1.asp----------
<form method="post" action="page2.a sp">
<select name="someData" size="1" class="smallbut ton">
<option value="1">Whate ver</option>
</select>
'and a submit button
</form>
----------END page1.asp--------------

-----------BEGIN page2.asp----------
aVariable = Request.Form("s omeData")

<form method="post" action="page3.a sp">
<select name="someOtheJ junk" size="1" class="smallbut ton">
<option value="1">Whate ver</option>
</select>
'and a submit button
</form>
----------END page2.asp--------------

Is there any kind of way to forward "someData", whch was
posted into page 2, to page 3 without making it more form data in page2. I
pretty much want to just be able to do something simple in page 3 like this:

-----------BEGIN page3.asp----------
anotherVariable = Request.Form("s omeData")
----------END page3.asp--------------
Thanks in advance.

Jul 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
1617
by: John Doe | last post by:
Hi all, Regarding those cyclic dependencies of classes (like cases in which class A refers to class B and class B to class A): can they ALL be resolved by forward defining classes, and by implementing the actual functions outside the class definition, OR there are STILL cases which cannot be solved in this way and could require rewriting your code / rewriting your class hierarchy?
7
2873
by: Lynn | last post by:
I am rewriting some memory management code and I need to have a forward declaration of a data structure. I am not converting this data structure into a class (yet). How do I generate a forward reference of a data structure ? For a class, I just say: class SomeClass; "struct SomeStructure;" does not work to forward declare the data structure. This is the structure that I am trying to generate a vector of pointers to:
5
6192
by: Todd Huish | last post by:
I have noticed something disturbing when retrieving datasets over a relatively slow line (multiple T1). I am looking at about 25 seconds to retrieve 500 rows via a php-odbc link. This same select from the cli is for all intents practicaly instantaneous. After much research I discovered that PHP by default uses a dynamic cursor type which can be quite a bit slower than a forward only cursor. BTW I have been searching forward only/read...
2
3338
by: Legendary Pansy | last post by:
Hello, I'm trying to accomplish the impossible by trying to do something equivalent of this example found here http://www.c-sharpcorner.com/Code/2003/Dec/DialogTutorial.as Starting with "Listing 2 - Changing the constructor of the modeless dialog to accept the parent object:" line and go onwards is what I'm trying to do Basically, there is the main form, and then there's the modeless form. I want the modeless form act like a modal form,...
1
2323
by: Steve | last post by:
Can anyone explain why C++ .NET compiler throws error for the following code segment: // Forward declaration of ListViewItemComparer class public __gc class ListViewItemComparer ; public __gc class CProgramLoaderForm : public System::Windows::Forms::Form { ListViewItemComparer* m_ListViewItemComparer ;
8
6527
by: Tracey | last post by:
Hi, guys. My application requires functionalities like back and forward navigating button on winforms. And there are many forms linking each other. Each form has a pair of buttons of "Back" and "Forward "How can I implement the back and forward procedure to make them work ? Is there anyone has the same experience like that ? Thanks
0
2466
by: BlipBlip | last post by:
Hi All, I was not sure which forum to post the message to since the problem related to ASP/AJAX, but decided to post it here. I have a simple routine which utilizes an Ajax to query database for keywords presence in database and returns matched records count. Below is the code for 2 pages. First page would take an input, post to the second via ajax and displays the returned message. Everything works fine when I use keywords contained Latin...
1
1787
by: Itzik | last post by:
The simple situation that works: A form (ASP 2.0 Page) with Page.MaintainScrollPositionOnPostBack set to True as well as Page.EnableViewState defaults to True. As the form's data are submitted to server and page is rendered back, the form data as well as the page scroll positions are maintained. This is OK! The complicated situation: After the form's data are submitted to server the page (let's call it X) is rendered back as usual, except...
0
9511
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10200
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9984
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7529
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6769
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5551
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4093
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3701
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2909
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.