473,322 Members | 1,566 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

How do I get data from different forms on a single page in classic asp

Say I have 3 forms on one page.
Expand|Select|Wrap|Line Numbers
  1. <form name"form1" method="post" action="/?mode=1">
  2. <input type="text" name="fm1txt1" value="" />
  3. <input type="Submit" value="Update" name="txtUD" id="txtUD" />
  4. </form>
  5.  
  6. <form name"form2" method="post" action="/?mode=2">
  7. <input type="text" name="fm1txt2" value="" />
  8. <input type="Submit" value="Update" name="txtUD" id="txtUD" />
  9. </form>
  10.  
  11. <form name"form3" method="post" action="/?mode=3">
  12. <input type="text" name="fm1txt3" value="" />
  13. <input type="Submit" value="Update" name="txtUD" id="txtUD" />
  14. </form>
  15.  
and finally
Expand|Select|Wrap|Line Numbers
  1. <form name="chout" action="/?mode=CO" method="post">
  2. <input type="Submit" value="Do It" name="txtCO" id="txtCO" />
  3. </form>
  4.  
The last form runs a function similar to this

Expand|Select|Wrap|Line Numbers
  1. TheCO = Request.Form("??")
  2. ThePC = Request.Form("??")
  3. TheCP = Request.Form("??")
  4. Session("TheCO") = TheCO
  5. Session("ThePC") = ThePC
  6. Session("TheCP") = TheCP
  7.  
I would like to pull TheCO from form1, ThePC from from 2, and TheCP from form3 hence the ?? in the above code.

Is it possible? Can you name which form you wish to pull the Request.Form data from? and if so how?
Sep 14 '14 #1
0 1294

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: iMedia User | last post by:
I have a site where I want to use the Web form validators in two separate forms on a single page. One form allows existing users to log in while the second one allows new users to register. The...
2
by: Curt_C [MVP] | last post by:
Can you specify a different authentication method ('none') for a single page? I have the web.config designed for 'Forms' auth, but I have one page that I want outside the auth method, without...
3
by: Ben Fidge | last post by:
Is is possible to make just a single page within an ASP.NET application use SSL? I've written an e-commerce application and want to make just the checkout page use SSL for secure transmission. ...
1
by: Christian Blackburn | last post by:
Hi Gang, I have trouble getting my single page Aspx pages to allow the imports and or inherits command. Can someone reply with an example. Thanks, Christian Blackburn
3
by: CD | last post by:
An application is logging faxes sent in SQL2000 image column type. I have found code on the net but what it is doing is prompting to save to local which is fine for single page image. Not good...
3
by: google | last post by:
Hi I'm looking for some advice, so if anyone wants to contribute I would be grateful. I'm trying to create a web application. By application I mean something that is like a Windows...
1
by: prasathas | last post by:
HI GUYS... i displayed three forms in a single page .. one form with dropdown list box ...and in another form if i select the value in drop down list box and submit it then i want to show the...
6
by: Aussie Rules | last post by:
Hi, I have an asp.net 2.0 page that has two sections. Each section allows the user to enter a value into a text box, click a button and then perform some function. Each text boxes function is...
0
by: burledivya | last post by:
Hi Every one, Iam Divya working as developer. I had some issues. In my 2 years this is the first forum i saw which is very active in posting the answers. I hope you could solve this also. Here...
0
by: UmeshBachchani | last post by:
I have a listview control without any column at design time. It is a programe that adds the column depending on the data put by user. If user put 5, it creates 5 columns and if user put 50 it creates...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.