By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,162 Members | 1,061 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,162 IT Pros & Developers. It's quick & easy.

Passing variables to ASPupload page

P: 1
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
Share this Question
Share on Google+
1 Reply


jhardman
Expert 2.5K+
P: 3,405
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

Post your reply

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