Go Back   CodingForums.com > :: Server side development > ASP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 09-29-2007, 08:18 PM   PM User | #1
sasha85
Regular Coder

 
Join Date: Sep 2007
Posts: 179
Thanks: 4
Thanked 0 Times in 0 Posts
sasha85 is an unknown quantity at this point
Cool Pass Variables

for example on the first page
i got
Code:
dim a
a = abcd1234

<form action=page2.asp method=post ENCTYPE="multipart/form-data" ...>
...
</form>
on the page2.asp
how can i catch the value of a
-i do not want to use get\response.redirect\session\Server.Transfer\hidden value in the form
request.querystring
request.form
request.upload
not working
it's a simple question for people that know well ASP
__________________
By the time u recognize this moment, This moment will be gone.
sasha85 is offline   Reply With Quote
Old 10-01-2007, 02:22 PM   PM User | #2
nikkiH
Senior Coder

 
nikkiH's Avatar
 
Join Date: Jun 2005
Location: Near Chicago, IL, USA
Posts: 1,973
Thanks: 1
Thanked 32 Times in 31 Posts
nikkiH is on a distinguished road
Quote:
i do not want to use get\response.redirect\session\Server.Transfer\hidden value in the form
The web is stateless. Something to indicate a key/value pair will always be passed somewhere in the request, whether it's the key or both the key and the value.
__________________

If this post contains any code, I may or may not have tested it. It's probably just example code, so no getting knickers in a bunch over a typo, OK? If it doesn't have basic error checking in it, such as object detection or checking if objects are null before using them, put that in there. I'm giving examples, not typing up your whole app for you. You run code at your own risk.
Bored? Visit
http://www.kaelisspace.com/
nikkiH is offline   Reply With Quote
Old 10-01-2007, 02:40 PM   PM User | #3
Spudhead
Senior Coder

 
Spudhead's Avatar
 
Join Date: Jun 2002
Location: London, UK
Posts: 1,856
Thanks: 8
Thanked 110 Times in 109 Posts
Spudhead is on a distinguished road
Cookies?
Spudhead is offline   Reply With Quote
Old 10-02-2007, 01:28 PM   PM User | #4
Daemonspyre
Regular Coder

 
Join Date: Mar 2007
Posts: 505
Thanks: 1
Thanked 19 Times in 19 Posts
Daemonspyre is on a distinguished road
Nikki is right, as the web cannot keep this information for you without you telling the server to keep it.

If you want to do this without passing variables, then you need to consider changing how you are authenticating your users.
__________________
Quote:
To say my fate is not tied to your fate is like saying, 'Your end of the boat is sinking.' -- Hugh Downs
Please, if you found my post helpful, pay it forward. Go and help someone else today.
Daemonspyre is offline   Reply With Quote
Old 10-02-2007, 02:37 PM   PM User | #5
nikkiH
Senior Coder

 
nikkiH's Avatar
 
Join Date: Jun 2005
Location: Near Chicago, IL, USA
Posts: 1,973
Thanks: 1
Thanked 32 Times in 31 Posts
nikkiH is on a distinguished road
Iframes or cookies would be a hack, and not a Good Thing.

It is always in the best interests of security to keep server-side things on the server. Things that the client never needs but that you may want to re-use are exactly what the session is for. As long as you don't kill the server with a ton of stuff in sessions, they perform well and do what they were meant to do.
__________________

If this post contains any code, I may or may not have tested it. It's probably just example code, so no getting knickers in a bunch over a typo, OK? If it doesn't have basic error checking in it, such as object detection or checking if objects are null before using them, put that in there. I'm giving examples, not typing up your whole app for you. You run code at your own risk.
Bored? Visit
http://www.kaelisspace.com/
nikkiH is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 11:42 AM.


Advertisement
Log in to turn off these ads.