473,378 Members | 1,543 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,378 software developers and data experts.

Passing variables to ASPupload page

Is there any way an ASP upload page (ASPupload.asp) can read request.form variables passed from the previous page (pre_upload.asp) when the form action on the pre_upload.asp page is action="ASPupload.asp". I have tried everyway I can think of with no success. I could use session variables or cookies but wanted to avoid these methods if possible
Apr 23 '12 #1
1 1736
jhardman
3,406 Expert 2GB
yeah, this shouldn't be a problem. what have you tried so far?

If I am stymied with a form post, I like to put this snippet near the top of the page. This just prints out everything posted from the form:
Expand|Select|Wrap|Line Numbers
  1. <table border="1"><tr><th colspan=2>Request.querystring</th></tr>
  2. <tr><th>Name</th><th>Value</th></tr>
  3. <%
  4. for each x in request.querystring
  5.    response.write "<tr><td>" & x & "</td><td>" & request.querystring(x) & "</td></tr>" & vbNewLine
  6. next 
  7. %>
  8. </table>
  9.  
  10. <table border="1"><tr><th colspan=2>Request.form</th></tr>
  11. <tr><th>Name</th><th>Value</th></tr>
  12. <%
  13. for each x in request.form
  14.    response.write "<tr><td>" & x.name & "</td><td>" & request.form(x) & "</td></tr>" & vbNewLine
  15. next 
  16. %>
  17. </table>
notice that some forms post as querystring, and some post as form, this script lists everything that was posted as both.

Jared
Apr 26 '12 #2

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

Similar topics

7
by: Matthew Robinson | last post by:
i read a tutorial the other day on passing variables between php pages using a html form and setting the action to the php page to parse, can anybody see anything wrong with the code below? the...
2
by: Chieko Kuroda | last post by:
Hello all, I would like to learn the syntax for passing variables that I retreived from a database to a second asp page. Currently, I'm using: Response.Write "<tr><td>&nbsp;</td><td><Font size=...
1
by: Consuelo Guenther | last post by:
Hello, I am having problems with passing variables between pages. I have the following: First asp page has the function: -----------------------------------------------------------------------...
0
by: shiv | last post by:
hi all, I need to access some variables which are generated in preRequestHandler Event in httpModule. I need these variables in Page ButtonControl Click event. Is that possible? I don't want...
1
by: DC Gringo | last post by:
I have a simple index.aspx page that declares and sets a sectionID in the Page_Load. The in a user control later on in the page, I read the sectionID variable (in the control's Page_Load) to...
7
by: Khai | last post by:
First off, yes, I understand the crapload of tutorials out there, (well, rather, I understand there /are/ a crapload of tutorials out there), the problem is my comprehension. I'm trying to pass...
3
by: jsdeveloper | last post by:
Hi, I just started programming in javascript, and I'm having a problem passing variables between javascript and asp code in .asp page. Can you please help? I've given the sample code below. ...
1
satterfieldben
by: satterfieldben | last post by:
I have a newbie question about passing variables between functions. I am wanting to use a drop down box to select a value. Then base on which was selected, it would create a variable and I would call...
6
by: coool | last post by:
Hi :) anyone knows how can I send variables from a php page to a form - i need to fill the form with these variables ? maybe using (the process of passing variables to other pages - through...
6
BezerkRogue
by: BezerkRogue | last post by:
This is the most fundamental action I am sure, but I can't seem to make it happen. I am familiar with passing variables in ASP. But that doesn't seem to be the preferred method in .NET. I have...
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...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.